diff options
author | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 02:48:12 +0000 |
---|---|---|
committer | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 02:48:12 +0000 |
commit | 583d45c199e5af7a53bb0b15e5ef0e2d6f5ead90 (patch) | |
tree | 516825f2a3da3f33527e1e145af4c020c5d13bc2 /chrome/browser/extensions/extensions_service.h | |
parent | 3ad594ae4c38b057303eeb90d7e601a99d38a7c0 (diff) | |
download | chromium_src-583d45c199e5af7a53bb0b15e5ef0e2d6f5ead90.zip chromium_src-583d45c199e5af7a53bb0b15e5ef0e2d6f5ead90.tar.gz chromium_src-583d45c199e5af7a53bb0b15e5ef0e2d6f5ead90.tar.bz2 |
Reland r57788 - Expose Extension Bindings to Component Applications
This patch allows component (built-in) extension apps to have extension api bindings.
Note that this patch adds browser-side api permission checking for extension requests.
This is step two along the path to exposing an extension management api to the gallery (webstore).
Original Review: http://codereview.chromium.org/3163044
BUG=27431
TBR=mpcomplete
Review URL: http://codereview.chromium.org/3263007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57941 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extensions_service.h')
-rw-r--r-- | chrome/browser/extensions/extensions_service.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extensions_service.h b/chrome/browser/extensions/extensions_service.h index 45110d4..efdc17b 100644 --- a/chrome/browser/extensions/extensions_service.h +++ b/chrome/browser/extensions/extensions_service.h @@ -288,6 +288,11 @@ class ExtensionsService // extent, if one exists. Extension* GetExtensionByOverlappingWebExtent(const ExtensionExtent& extent); + // 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. + bool ExtensionBindingsAllowed(const GURL& url); + // Returns the icon to display in the omnibox for the given extension. const SkBitmap& GetOmniboxIcon(const std::string& extension_id); |