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

Unified Diff: extensions/renderer/api_binding.h

Issue 2575173002: [Extensions Bindings] Add a bridge to use current custom bindings (Closed)
Patch Set: . Created 4 years 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/BUILD.gn ('k') | extensions/renderer/api_binding.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/api_binding.h
diff --git a/extensions/renderer/api_binding.h b/extensions/renderer/api_binding.h
index 22fc448516f9882cf5acd9b6b1d5fb8f699acb6d..b4353a95276c3cc5c643365a3b09326dc8838ff4 100644
--- a/extensions/renderer/api_binding.h
+++ b/extensions/renderer/api_binding.h
@@ -75,6 +75,10 @@ class APIBinding {
APIEventHandler* event_handler,
const AvailabilityCallback& is_available);
+ // Returns the JS interface to use when registering hooks with legacy custom
+ // bindings.
+ v8::Local<v8::Object> GetJSHookInterface(v8::Local<v8::Context> context);
+
private:
// Handles a call an API method with the given |name| and matches the
// arguments against |signature|.
@@ -94,8 +98,7 @@ class APIBinding {
// The callback to use when an API is invoked with valid arguments.
APIMethodCallback method_callback_;
- // The registered hooks for this API. Null if there are no registered custom
- // hooks.
+ // The registered hooks for this API.
std::unique_ptr<APIBindingHooks> binding_hooks_;
// The reference map for all known types; required to outlive this object.
« no previous file with comments | « extensions/renderer/BUILD.gn ('k') | extensions/renderer/api_binding.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698