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

Unified Diff: chrome/browser/media/webrtc_logging_handler_host.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: chrome/browser/media/webrtc_logging_handler_host.cc
diff --git a/chrome/browser/media/webrtc_logging_handler_host.cc b/chrome/browser/media/webrtc_logging_handler_host.cc
index d9ea6756c97890d86e5f14482576f43c5a26fb39..abf3a15be1cb448ac15fe5185879f585242f8b77 100644
--- a/chrome/browser/media/webrtc_logging_handler_host.cc
+++ b/chrome/browser/media/webrtc_logging_handler_host.cc
@@ -19,6 +19,7 @@
#include "chrome/browser/chromeos/settings/cros_settings.h"
#include "chrome/browser/media/webrtc_log_list.h"
#include "chrome/browser/media/webrtc_log_uploader.h"
+#include "chrome/browser/media/webrtc_rtp_dump_handler.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/media/webrtc_logging_messages.h"
@@ -224,6 +225,13 @@ void WebRtcLoggingHandlerHost::LogMessage(const std::string& message) {
WebRtcLoggingMessageData(base::Time::Now(), message)));
}
+void WebRtcLoggingHandlerHost::OnRtpPacket(const uint8* packet,
Henrik Grunell 2014/05/07 09:38:19 Check thread.
+ size_t length,
+ bool incoming) {
+ if (rtp_dump_handler_)
+ rtp_dump_handler_->OnRtpPacket(packet, length, incoming);
+}
+
void WebRtcLoggingHandlerHost::OnChannelClosing() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
if (logging_state_ == STARTED || logging_state_ == STOPPED) {

Powered by Google App Engine
This is Rietveld 408576698