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

Unified Diff: extensions/renderer/api_bindings_system.h

Issue 2697363003: [Extensions Bindings] Move request dispatch to APIRequestHandler (Closed)
Patch Set: . Created 3 years, 10 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: extensions/renderer/api_bindings_system.h
diff --git a/extensions/renderer/api_bindings_system.h b/extensions/renderer/api_bindings_system.h
index ecea8e904774215d271e0fd71fe5df185dea906c..a21da2e1443bda3065f43decda18feb0d197de84 100644
--- a/extensions/renderer/api_bindings_system.h
+++ b/extensions/renderer/api_bindings_system.h
@@ -37,7 +37,7 @@ class APIBindingsSystem {
APIBindingsSystem(const binding::RunJSFunction& call_js,
const binding::RunJSFunctionSync& call_js_sync,
const GetAPISchemaMethod& get_api_schema,
- const APIBinding::SendRequestMethod& send_request,
+ const APIRequestHandler::SendRequestMethod& send_request,
const APIEventHandler::EventListenersChangedMethod&
event_listeners_changed,
APILastError last_error);
@@ -106,11 +106,6 @@ class APIBindingsSystem {
// API. Curried in for testing purposes so we can use fake APIs.
GetAPISchemaMethod get_api_schema_;
- // The method to call when a new API call is triggered. Curried in for testing
- // purposes. Typically, this would send an IPC to the browser to begin the
- // function work.
- APIBinding::SendRequestMethod send_request_;
-
DISALLOW_COPY_AND_ASSIGN(APIBindingsSystem);
};

Powered by Google App Engine
This is Rietveld 408576698