Chromium Code Reviews| Index: chrome/browser/extensions/extension_management.h |
| diff --git a/chrome/browser/extensions/extension_management.h b/chrome/browser/extensions/extension_management.h |
| index 8ce74feff42f9522751586d1fd41ce7fa7e3bcd7..28b2e1fc16133b81e9361ac7d700950bbb7af04e 100644 |
| --- a/chrome/browser/extensions/extension_management.h |
| +++ b/chrome/browser/extensions/extension_management.h |
| @@ -117,12 +117,31 @@ class ExtensionManagement : public KeyedService { |
| // Returns the list of hosts blocked by policy for |extension|. |
| const URLPatternSet& GetRuntimeBlockedHosts(const Extension* extension) const; |
| - // Returns the list of hosts |extension| is limited to by policy. |
| + // Returns the hosts exempted by policy from the RuntimeBlockedHosts for |
| + // |extension|. |
| const URLPatternSet& GetRuntimeAllowedHosts(const Extension* extension) const; |
| + // Returns the list of hosts blocked by policy for Default scope. This can be |
| + // overridden by an invividual scope which is queried via |
| + // GetRuntimeBlockedHosts. This should only be used to initialize a new |
|
Devlin
2017/04/07 00:40:26
We can probably remove the bit about "this should
nrpeter
2017/04/12 23:35:44
Done.
|
| + // renderer. |
| + const URLPatternSet& GetDefaultRuntimeBlockedHosts() const; |
| + |
| + // Returns the hosts exempted by policy from RuntimeBlockedHosts for |
| + // the default scope. This can be overridden by an individual scope which is |
| + // queries via GetRuntimeAllowedHosts. This should only be used to |
| + // initialize a new renderer. |
| + const URLPatternSet& GetDefaultRuntimeAllowedHosts() const; |
| + |
| + // Checks if an |extension| has its own runtime_blocked_hosts or |
| + // runtime_allowed_hosts defined in the individual scope of the |
| + // ExtensionSettings policy. |
| + // Returns false if an individual scoped setting isn't defined. |
| + bool UsesDefaultRuntimeHostRestrictions(const Extension* extension) const; |
| + |
| // Checks if a URL is on the blocked host permissions list for a specific |
| // extension. |
| - bool IsBlockedHost(const Extension* extension, const GURL& url) const; |
| + bool IsRuntimeBlockedHost(const Extension* extension, const GURL& url) const; |
| // Returns blocked permission set for |extension|. |
| std::unique_ptr<const PermissionSet> GetBlockedPermissions( |