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

Unified Diff: extensions/renderer/api_binding_hooks.h

Issue 2617423003: [Extensions Bindings] Add support for updateArgumentsPostValidate (Closed)
Patch Set: rebase Created 3 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 | « extensions/renderer/api_binding.cc ('k') | extensions/renderer/api_binding_hooks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/api_binding_hooks.h
diff --git a/extensions/renderer/api_binding_hooks.h b/extensions/renderer/api_binding_hooks.h
index e326d8cfb233d5c8132cbdb533f6b6608ab9e044..83113ce7b23827b6cf0101bcf64f8e51b67cf845 100644
--- a/extensions/renderer/api_binding_hooks.h
+++ b/extensions/renderer/api_binding_hooks.h
@@ -77,14 +77,14 @@ class APIBindingHooks {
void InitializeInContext(v8::Local<v8::Context> context,
const std::string& api_name);
- // Looks for a custom hook to handle the given request and, if one exists,
- // runs it. Returns the result of running the hook, if any.
- RequestResult HandleRequest(const std::string& api_name,
- const std::string& method_name,
- v8::Local<v8::Context> context,
- const APISignature* signature,
- std::vector<v8::Local<v8::Value>>* arguments,
- const ArgumentSpec::RefMap& type_refs);
+ // Looks for any custom hooks associated with the given request, and, if any
+ // are found, runs them. Returns the result of running the hooks, if any.
+ RequestResult RunHooks(const std::string& api_name,
+ const std::string& method_name,
+ v8::Local<v8::Context> context,
+ const APISignature* signature,
+ std::vector<v8::Local<v8::Value>>* arguments,
+ const ArgumentSpec::RefMap& type_refs);
// Returns a JS interface that can be used to register hooks.
v8::Local<v8::Object> GetJSHookInterface(const std::string& api_name,
« no previous file with comments | « extensions/renderer/api_binding.cc ('k') | extensions/renderer/api_binding_hooks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698