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

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: fix leak 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | content/browser/renderer_host/p2p/socket_dispatcher_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f48d05ea69cbebafb155d8db877a26ff9457f306 100644
--- a/content/browser/renderer_host/p2p/socket_dispatcher_host.h
+++ b/content/browser/renderer_host/p2p/socket_dispatcher_host.h
@@ -14,6 +14,7 @@
#include "content/common/p2p_socket_type.h"
#include "content/public/browser/browser_message_filter.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/render_process_host.h"
#include "net/base/ip_endpoint.h"
#include "net/base/network_change_notifier.h"
@@ -46,6 +47,15 @@ class P2PSocketDispatcherHost
// net::NetworkChangeNotifier::IPAddressObserver interface.
virtual void OnIPAddressChanged() OVERRIDE;
+ // Starts the RTP packet header dumping. Must be called on the IO thread.
+ void StartRtpDump(
+ bool incoming,
+ bool outgoing,
+ const RenderProcessHost::WebRtcRtpPacketCallback& packet_callback);
+
+ // Stops the RTP packet header dumping. Must be Called on the UI thread.
+ void StopRtpDumpOnUIThread(bool incoming, bool outgoing);
+
protected:
virtual ~P2PSocketDispatcherHost();
@@ -87,6 +97,8 @@ class P2PSocketDispatcherHost
void OnAddressResolved(DnsRequest* request,
const net::IPAddressList& addresses);
+ void StopRtpDumpOnIOThread(bool incoming, bool outgoing);
+
content::ResourceContext* resource_context_;
scoped_refptr<net::URLRequestContextGetter> url_context_;
@@ -97,6 +109,10 @@ class P2PSocketDispatcherHost
std::set<DnsRequest*> dns_requests_;
P2PMessageThrottler throttler_;
+ bool dump_incoming_rtp_packet_;
+ bool dump_outgoing_rtp_packet_;
+ RenderProcessHost::WebRtcRtpPacketCallback packet_callback_;
+
DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost);
};
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | content/browser/renderer_host/p2p/socket_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698