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

Unified Diff: extensions/common/extension_api.h

Issue 404883002: Allow extension APIs to be called from WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android compile Created 6 years, 5 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 | « extensions/common/api/_api_features.json ('k') | extensions/common/extension_api.cc » ('j') | 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 77dab818ee0be3b0a88799581c4c57a85d5310cf..8ce02454877500b2cf6196e2bbbaed277d7fef38 100644
--- a/extensions/common/extension_api.h
+++ b/extensions/common/extension_api.h
@@ -109,6 +109,9 @@ class ExtensionAPI {
bool IsAvailableInUntrustedContext(const std::string& name,
const Extension* extension);
+ // Returns true if |name| is available to webui contexts.
+ bool IsAvailableToWebUI(const std::string& name);
+
// Gets the schema for the extension API with namespace |full_name|.
// Ownership remains with this object.
const base::DictionaryValue* GetSchema(const std::string& full_name);
« no previous file with comments | « extensions/common/api/_api_features.json ('k') | extensions/common/extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698