summaryrefslogtreecommitdiffstats
path: root/extensions/common
diff options
context:
space:
mode:
authorkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-09 19:58:43 +0000
committerkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-09 19:58:43 +0000
commit9b6a633b7c9d687a033f8402e9dca99c0e42110a (patch)
tree99c7902780d3b6b1a6f3a8798e25b6bdb6b99b0f /extensions/common
parentf6b88d9a24e937243df743fbcdbbf225ceabdf69 (diff)
downloadchromium_src-9b6a633b7c9d687a033f8402e9dca99c0e42110a.zip
chromium_src-9b6a633b7c9d687a033f8402e9dca99c0e42110a.tar.gz
chromium_src-9b6a633b7c9d687a033f8402e9dca99c0e42110a.tar.bz2
Register bindings for blessed web contexts (aka hosted app contexts) by hand
rather than automatically; this allows them to be treated like web contexts rather than extension contexts, which allows the more complex bindings rules for making the messaging APIs (chrome.runtime.connect/sendMessage) available. Make them available. BUG=326250 R=koz@chromium.org Review URL: https://codereview.chromium.org/114803007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243959 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/common')
-rw-r--r--extensions/common/extension_api.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/extensions/common/extension_api.h b/extensions/common/extension_api.h
index 024f594..1b2ad3e 100644
--- a/extensions/common/extension_api.h
+++ b/extensions/common/extension_api.h
@@ -65,8 +65,12 @@ class ExtensionAPI {
void RegisterDependencyProvider(const std::string& name,
FeatureProvider* provider);
- // Returns true if the specified API is available. Returns true if the feature
- // and all of its dependencies are available to the specified context.
+ // Returns true if the API feature |api| and all of its dependencies are
+ // available in |context|.
+ //
+ // Depending on the configuration of |api| (in _api_features.json), either
+ // |extension| or |url| (or both) may determine its availability, but this is
+ // up to the configuration of the individual feature.
Feature::Availability IsAvailable(const Feature& api,
const Extension* extension,
Feature::Context context,