X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fextensions%2Fcommon%2Fmanifest_handlers%2Fwebview_info.h;h=dcdb400c71db96f204fa0016dc74cd2ba33619e7;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=d32d145fd7cfd34a535276fae770b59c06826908;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/extensions/common/manifest_handlers/webview_info.h b/src/extensions/common/manifest_handlers/webview_info.h index d32d145..dcdb400 100644 --- a/src/extensions/common/manifest_handlers/webview_info.h +++ b/src/extensions/common/manifest_handlers/webview_info.h @@ -7,15 +7,19 @@ #include +#include "base/memory/scoped_vector.h" #include "extensions/common/extension.h" #include "extensions/common/manifest_handler.h" namespace extensions { -// A structure to hold the accessible extension resources +class PartitionItem; + +// A class to hold the accessible extension resources // that may be specified in the manifest of an extension using the // "webview" key. -struct WebviewInfo : public Extension::ManifestData { +class WebviewInfo : public Extension::ManifestData { + public: // Define out of line constructor/destructor to please Clang. WebviewInfo(); virtual ~WebviewInfo(); @@ -25,13 +29,10 @@ struct WebviewInfo : public Extension::ManifestData { const std::string& partition_id, const std::string& relative_path); - // Returns true when 'webview_accessible_resources' are defined for the - // app. - static bool HasWebviewAccessibleResources(const Extension* extension); + void AddPartitionItem(scoped_ptr item); - // Optional list of webview accessible extension resources. - std::vector webview_privileged_partitions_; - URLPatternSet webview_accessible_resources_; + private: + ScopedVector partition_items_; }; // Parses the "webview" manifest key.