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

Unified Diff: extensions/renderer/bindings/api_bindings_system.h

Issue 2962093002: [Extensions Bindings] Add activity logging of custom handling (Closed)
Patch Set: nit Created 3 years, 5 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/bindings/api_bindings_system.h
diff --git a/extensions/renderer/bindings/api_bindings_system.h b/extensions/renderer/bindings/api_bindings_system.h
index 00d205f9271a96a20de7077180a4f68fc4c0823c..82351c3fd6645d3f6cb64e4206ccfd08f61e5299 100644
--- a/extensions/renderer/bindings/api_bindings_system.h
+++ b/extensions/renderer/bindings/api_bindings_system.h
@@ -51,6 +51,7 @@ class APIBindingsSystem {
const APIRequestHandler::SendRequestMethod& send_request,
const APIEventHandler::EventListenersChangedMethod&
event_listeners_changed,
+ const APIBinding::OnSilentRequest& on_silent_request,
APILastError last_error);
~APIBindingsSystem();
@@ -141,6 +142,10 @@ class APIBindingsSystem {
// API. Curried in for testing purposes so we can use fake APIs.
GetAPISchemaMethod get_api_schema_;
+ // The method to call when the system silently handles an API request without
+ // notifying the browser.
+ APIBinding::OnSilentRequest on_silent_request_;
+
DISALLOW_COPY_AND_ASSIGN(APIBindingsSystem);
};
« no previous file with comments | « extensions/renderer/bindings/api_binding_unittest.cc ('k') | extensions/renderer/bindings/api_bindings_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698