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

Unified Diff: content/browser/renderer_host/p2p/socket_dispatcher_host.cc

Issue 142923005: Allow MessageFilters to restrict listening to specific message classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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: content/browser/renderer_host/p2p/socket_dispatcher_host.cc
diff --git a/content/browser/renderer_host/p2p/socket_dispatcher_host.cc b/content/browser/renderer_host/p2p/socket_dispatcher_host.cc
index 7e9b835b4e8dc987e1eee4f485fe8a2d2506f8d1..7780970d22131bf8896666ca2d28e47d9fcd6372 100644
--- a/content/browser/renderer_host/p2p/socket_dispatcher_host.cc
+++ b/content/browser/renderer_host/p2p/socket_dispatcher_host.cc
@@ -96,7 +96,8 @@ class P2PSocketDispatcherHost::DnsRequest {
P2PSocketDispatcherHost::P2PSocketDispatcherHost(
content::ResourceContext* resource_context,
net::URLRequestContextGetter* url_context)
- : resource_context_(resource_context),
+ : BrowserMessageFilter(P2PMsgStart),
+ resource_context_(resource_context),
url_context_(url_context),
monitoring_networks_(false) {
}

Powered by Google App Engine
This is Rietveld 408576698