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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 264793017: Implements RTP header dumping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add WebRtcRtpDumpWriter 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/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 7d19b6f55387aa80794b08a7193c75ae3a31505c..609c522fcf3267a3f9a7fef8d5814b5190776685 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1512,6 +1512,12 @@ void RenderProcessHostImpl::SetWebRtcLogMessageCallback(
base::Callback<void(const std::string&)> callback) {
webrtc_log_message_callback_ = callback;
}
+
+void RenderProcessHostImpl::SetWebRtcRtpPacketCallback(
+ const WebRtcRtpPacketCallback& callback) {
+ webrtc_rtp_packet_callback_ = callback;
+}
+
#endif
IPC::ChannelProxy* RenderProcessHostImpl::GetChannel() {
@@ -1899,6 +1905,14 @@ void RenderProcessHostImpl::WebRtcLogMessage(const std::string& message) {
if (!webrtc_log_message_callback_.is_null())
webrtc_log_message_callback_.Run(message);
}
+
+void RenderProcessHostImpl::OnRtpPacket(const uint8* packet,
+ size_t length,
+ bool incoming) {
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
+ if (!webrtc_rtp_packet_callback_.is_null())
+ webrtc_rtp_packet_callback_.Run(packet, length, incoming);
+}
#endif
scoped_refptr<ScreenOrientationDispatcherHost>

Powered by Google App Engine
This is Rietveld 408576698