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

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 8 years, 4 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 a991645308a5513276474924d2f77d63ce626c1f..851cab41919bcb9dfe2d56136b18ece96d0587a1 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -123,7 +123,8 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
TYPE_USER_SCRIPT,
TYPE_HOSTED_APP,
TYPE_PACKAGED_APP,
- TYPE_PLATFORM_APP
+ TYPE_PLATFORM_APP,
+ TYPE_CONTENT_PACK,
};
enum SyncType {
@@ -709,6 +710,10 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
return theme_display_properties_.get();
}
+ // Content pack related.
+ bool is_content_pack() const;
+ FilePath GetContentPackSiteList() const;
Aaron Boodman 2012/08/15 04:05:18 Seems like this should be an ExtensionResource.
Bernhard Bauer 2012/08/15 19:35:09 Done.
+
GURL GetBackgroundURL() const;
private:
@@ -858,6 +863,10 @@ 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);
// Helper function for implementing HasCachedImage/GetCachedImage. A return
Aaron Boodman 2012/08/15 04:05:18 Insert newline.
Bernhard Bauer 2012/08/15 19:35:09 Done.
// value of NULL means there is no matching image cached (we allow caching an
// empty SkBitmap).
@@ -1061,6 +1070,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::StringType 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