Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3849)

Unified Diff: chrome/common/extensions/extension.h

Issue 10782030: Add content pack information to Extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/api/_manifest_features.json ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension.h
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index 87ba5d5b0fc090393df407c328f3e5da73104437..a2af398ca5d1d71ba1ac9af3afae688b5c9a09a7 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -820,6 +820,9 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
return content_security_policy_;
}
+ // Content pack related.
+ ExtensionResource GetContentPackSiteList() const;
+
GURL GetBackgroundURL() const;
private:
@@ -967,6 +970,14 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
bool LoadThemeDisplayProperties(const base::DictionaryValue* theme_value,
string16* error);
+ bool LoadManagedModeFeatures(string16* error);
+ bool LoadManagedModeSites(
+ const base::DictionaryValue* content_pack_value,
+ string16* error);
+ bool LoadManagedModeConfigurations(
+ const base::DictionaryValue* content_pack_value,
+ string16* error);
+
// Helper function for implementing HasCachedImage/GetCachedImage. A return
// value of NULL means there is no matching image cached (we allow caching an
// empty SkBitmap).
@@ -1178,6 +1189,9 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
// A map of display properties.
scoped_ptr<base::DictionaryValue> theme_display_properties_;
+ // A file containing a list of sites for Managed Mode.
+ FilePath content_pack_site_list_;
+
// The homepage for this extension. Useful if it is not hosted by Google and
// therefore does not have a Gallery URL.
GURL homepage_url_;
« no previous file with comments | « chrome/common/extensions/api/_manifest_features.json ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698