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

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
Index: extensions/renderer/api_binding.h
diff --git a/extensions/renderer/api_binding.h b/extensions/renderer/api_binding.h
index 464ec86efb15e1f860f0df7287cb376c5c839630..f9d28f45404f96f5e1f09b99926830d2842b51db 100644
--- a/extensions/renderer/api_binding.h
+++ b/extensions/renderer/api_binding.h
@@ -74,6 +74,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> GetJSHooksInterface(v8::Local<v8::Context> context);
+
private:
using APISignature = std::vector<std::unique_ptr<ArgumentSpec>>;

Powered by Google App Engine
This is Rietveld 408576698