Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Unified Diff: extensions/common/extension_api.h

Issue 114803007: Register bindings for blessed web contexts (aka hosted app contexts) by hand (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/extensions/runtime_custom_bindings.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extension_api.h
diff --git a/extensions/common/extension_api.h b/extensions/common/extension_api.h
index 024f594bb3a7e536064711da45abdb2388b36c39..1b2ad3edd2be5ee6ca16087a53807059d8013fe6 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,
« no previous file with comments | « chrome/renderer/extensions/runtime_custom_bindings.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698