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..2a6aade92ecc180803aadae71317cbd63b7a5e4a 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; |
+ // Start or stop the RTP packet header dumping. Must be called on the IO |
+ // thread. |
+ void StartRtpDump( |
+ bool incoming, |
+ bool outgoing, |
+ const RenderProcessHost::WebRtcRtpPacketCallback& packet_callback); |
+ |
+ void StopRtpDump(bool incoming, bool outgoing); |
+ |
protected: |
virtual ~P2PSocketDispatcherHost(); |
@@ -97,6 +107,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); |
}; |