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

Unified Diff: extensions/browser/api/web_request/web_request_api.h

Issue 2121873002: Fix WebRequest's EventListener::operator< (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix WebRequest's EventListener::operator< Created 4 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/browser/api/web_request/web_request_api.h
diff --git a/extensions/browser/api/web_request/web_request_api.h b/extensions/browser/api/web_request/web_request_api.h
index c830faf819d3389be5e3385f93f13307e4f9fe57..2ff5254bc18a4b511375ea9694dfeb3b06cfe0b8 100644
--- a/extensions/browser/api/web_request/web_request_api.h
+++ b/extensions/browser/api/web_request/web_request_api.h
@@ -274,6 +274,9 @@ class ExtensionWebRequestEventRouter
int web_view_instance_id,
base::WeakPtr<IPC::Sender> ipc_sender);
+ // Get the number of listeners - for testing only.
+ int GetListenerCount(void* browser_context, const std::string& event_name);
Ken Rockot(use gerrit already) 2016/07/08 15:53:33 nit: GetListenerCountForTest?
+
// Removes the listener for the given sub-event.
void RemoveEventListener(
void* browser_context,

Powered by Google App Engine
This is Rietveld 408576698