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> |