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

Unified Diff: chrome/browser/media/cast_transport_host_filter.cc

Issue 178073004: Cast: IPC from browser to renderer to send packet events from transport to cast library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change sender app Created 6 years, 10 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/cast_transport_host_filter.cc
diff --git a/chrome/browser/media/cast_transport_host_filter.cc b/chrome/browser/media/cast_transport_host_filter.cc
index fe5ccacd41a32078a547185cc1627122ad3ff3ae..35db8be70025b79ea06d641318f0d2e20978bfec 100644
--- a/chrome/browser/media/cast_transport_host_filter.cc
+++ b/chrome/browser/media/cast_transport_host_filter.cc
@@ -57,6 +57,13 @@ void CastTransportHostFilter::ReceivedRtpStatistics(
rtp_timestamp));
}
+void CastTransportHostFilter::RawEvents(
+ int32 channel_id,
+ const std::vector<media::cast::PacketEvent>& packet_events) {
+ if (!packet_events.empty())
+ Send(new CastMsg_RawEvents(channel_id, packet_events));
+}
+
void CastTransportHostFilter::OnNew(
int32 channel_id,
const media::cast::transport::CastTransportConfig& config) {
@@ -66,13 +73,20 @@ void CastTransportHostFilter::OnNew(
id_map_.Remove(channel_id);
}
- sender = media::cast::transport::CastTransportSender::
- CreateCastTransportSender(
+ media::cast::CastLoggingConfig logging_config;
+ logging_config.enable_raw_data_collection = config.enable_raw_event_logging;
hubbe 2014/02/25 22:22:16 This seems really weird to me. What is the point o
imcheng 2014/02/25 23:14:56 I was hoping to have a LoggingImpl in CastTranspor
+
+ sender =
+ media::cast::transport::CastTransportSender::CreateCastTransportSender(
&clock_,
config,
+ logging_config,
base::Bind(&CastTransportHostFilter::NotifyStatusChange,
base::Unretained(this),
channel_id),
+ base::Bind(&CastTransportHostFilter::RawEvents,
+ base::Unretained(this),
+ channel_id),
base::MessageLoopProxy::current());
sender->SetPacketReceiver(
base::Bind(&CastTransportHostFilter::ReceivedPacket,

Powered by Google App Engine
This is Rietveld 408576698