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

Unified Diff: extensions/common/extension_api.h

Issue 377753003: Remove GetContexts() from the public interface of extensions::Feature. It was (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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/browser/extension_function_dispatcher.cc ('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 ca17408f47eaff27d8feb0c51022c117516d7c09..77dab818ee0be3b0a88799581c4c57a85d5310cf 100644
--- a/extensions/common/extension_api.h
+++ b/extensions/common/extension_api.h
@@ -104,11 +104,10 @@ class ExtensionAPI {
Feature::Context context,
const GURL& url);
- // Returns true if |name| is a privileged API path. Privileged paths can only
- // be called from extension code which is running in its own designated
- // extension process. They cannot be called from extension code running in
- // content scripts, or other low-privileged contexts.
- bool IsPrivileged(const std::string& name);
+ // Returns true if |name| is available to |extension| in any untrusted
+ // extension context, such as content scripts, iframes, or web pages.
+ bool IsAvailableInUntrustedContext(const std::string& name,
+ const Extension* extension);
// Gets the schema for the extension API with namespace |full_name|.
// Ownership remains with this object.
« no previous file with comments | « extensions/browser/extension_function_dispatcher.cc ('k') | extensions/common/extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698