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

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

Issue 264793017: Implements RTP header dumping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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.h
diff --git a/content/browser/renderer_host/p2p/socket_dispatcher_host.h b/content/browser/renderer_host/p2p/socket_dispatcher_host.h
index 1f456915b24bfd20fb1cb109c5b02797119fe6b8..2357bbbe0a20ee429f5c8828180536e0674c50ad 100644
--- a/content/browser/renderer_host/p2p/socket_dispatcher_host.h
+++ b/content/browser/renderer_host/p2p/socket_dispatcher_host.h
@@ -35,7 +35,8 @@ class P2PSocketDispatcherHost
public net::NetworkChangeNotifier::IPAddressObserver {
public:
P2PSocketDispatcherHost(content::ResourceContext* resource_context,
- net::URLRequestContextGetter* url_context);
+ net::URLRequestContextGetter* url_context,
+ int render_process_host_id);
// content::BrowserMessageFilter overrides.
virtual void OnChannelClosing() OVERRIDE;
@@ -46,6 +47,11 @@ class P2PSocketDispatcherHost
// net::NetworkChangeNotifier::IPAddressObserver interface.
virtual void OnIPAddressChanged() OVERRIDE;
+ // Start or stop the RTP packet header dumping. Mustbe called on the IO
+ // thread.
+ void StartRtpDump(bool incoming, bool outgoing);
+ void StopRtpDump(bool incoming, bool outgoing);
+
protected:
virtual ~P2PSocketDispatcherHost();
@@ -89,6 +95,7 @@ class P2PSocketDispatcherHost
content::ResourceContext* resource_context_;
scoped_refptr<net::URLRequestContextGetter> url_context_;
+ int render_process_host_id_;
SocketsMap sockets_;
@@ -97,6 +104,9 @@ class P2PSocketDispatcherHost
std::set<DnsRequest*> dns_requests_;
P2PMessageThrottler throttler_;
+ bool dump_incoming_rtp_packet_;
+ bool dump_outgoing_rtp_packet_;
+
DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost);
};

Powered by Google App Engine
This is Rietveld 408576698