Index: chrome/browser/extensions/extension_management.h |
diff --git a/chrome/browser/extensions/extension_management.h b/chrome/browser/extensions/extension_management.h |
index 4aab9dde3bdcfde42b7ce00e8cd2f561e5c5fb58..366dfb192a17b15ecb6bc024ed61c716f4fedbe8 100644 |
--- a/chrome/browser/extensions/extension_management.h |
+++ b/chrome/browser/extensions/extension_management.h |
@@ -23,6 +23,7 @@ |
#include "extensions/common/url_pattern_set.h" |
class PrefService; |
+class GURL; |
Joao da Silva
2014/09/12 13:39:16
nit: order (GURL before PrefService)
binjin
2014/09/12 13:41:23
Done.
|
namespace content { |
class BrowserContext; |
@@ -117,6 +118,9 @@ class ExtensionManagement : public KeyedService { |
// Returns if an extension with id |id| is allowed to install or not. |
bool IsInstallationAllowed(const ExtensionId& id) const; |
+ // Returns true if an extension download should be allowed to proceed. |
+ bool IsOffstoreInstallAllowed(const GURL& url, const GURL& referrer_url); |
+ |
// Helper function to read |settings_by_id_| with |id| as key. Returns a |
// constant reference to default settings if |id| does not exist. |
const IndividualSettings& ReadById(const ExtensionId& id) const; |