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

Unified Diff: chrome/renderer/extensions/extension_process_bindings.h

Issue 6894045: wip (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 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
Index: chrome/renderer/extensions/extension_process_bindings.h
diff --git a/chrome/renderer/extensions/extension_process_bindings.h b/chrome/renderer/extensions/extension_process_bindings.h
index d187453ef4247705856097a4820c7d70d94931c4..cca13b2f2cdc15bfc90979a28e5b42a3a52f5b22 100644
--- a/chrome/renderer/extensions/extension_process_bindings.h
+++ b/chrome/renderer/extensions/extension_process_bindings.h
@@ -25,46 +25,12 @@ class WebView;
class ExtensionProcessBindings {
public:
- static void SetFunctionNames(const std::vector<std::string>& names);
static v8::Extension* Get(ExtensionDispatcher* extension_dispatcher);
- // Gets the set of extensions running in this process.
- static void GetActiveExtensions(std::set<std::string>* extension_ids);
-
// Handles a response to an API request.
static void HandleResponse(int request_id, bool success,
const std::string& response,
const std::string& error);
-
- // Sets the page action ids for a particular extension.
- static void SetPageActions(const std::string& extension_id,
- const std::vector<std::string>& page_actions);
-
- // Sets the API permissions for a particular extension.
- static void SetAPIPermissions(const std::string& extension_id,
- const std::set<std::string>& permissions);
-
- // Sets the host permissions for a particular extension.
- static void SetHostPermissions(const GURL& extension_url,
- const std::vector<URLPattern>& permissions);
-
- // Check if the extension in the currently running context has permission to
- // access the given extension function. Must be called with a valid V8
- // context in scope.
- static bool CurrentContextHasPermission(const std::string& function_name);
-
- // Checks whether |permission| is enabled for |extension_id|. |permission|
- // may be a raw permission name (from Extension::kPermissionNames), a
- // function name (e.g. "tabs.create") or an event name (e.g. "contextMenus/id"
- // or "devtools.tabid.name").
- // TODO(erikkay) We should standardize the naming scheme for our events.
- static bool HasPermission(const std::string& extension_id,
- const std::string& permission);
-
- // Throw a V8 exception indicating that permission to access function_name was
- // denied. Must be called with a valid V8 context in scope.
- static v8::Handle<v8::Value> ThrowPermissionDeniedException(
- const std::string& function_name);
};
#endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_
« no previous file with comments | « chrome/renderer/extensions/extension_dispatcher.cc ('k') | chrome/renderer/extensions/extension_process_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698