Chromium Code Reviews| 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_; |