Index: chrome/browser/extensions/extension_service.h |
=================================================================== |
--- chrome/browser/extensions/extension_service.h (revision 137574) |
+++ chrome/browser/extensions/extension_service.h (working copy) |
@@ -168,6 +168,12 @@ |
// settings are stored. |
static const char* kSyncExtensionSettingsDirectoryName; |
+ // Determine if a given extension download should be treated as if it came |
+ // from the gallery. Note that this is requires *both* that the download_url |
+ // match and that the download was referred from a gallery page. |
+ bool IsDownloadFromGallery(const GURL& download_url, |
+ const GURL& referrer_url); |
+ |
// Returns the Extension of hosted or packaged apps, NULL otherwise. |
const Extension* GetInstalledApp(const GURL& url); |
@@ -367,6 +373,9 @@ |
// an existing extension. |
virtual void SyncExtensionChangeIfNeeded(const Extension& extension) OVERRIDE; |
+ // The App that represents the web store. |
+ const Extension* GetWebStoreApp(); |
+ |
// Returns true if |url| should get extension api bindings and be permitted |
// to make api calls. Note that this is independent of what extension |
// permissions the given extension has been granted. |