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

Unified Diff: media/cast/cast_receiver_impl.cc

Issue 109413004: Cast:Adding cast_transport_config and cleaning up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 11 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
« no previous file with comments | « media/cast/cast_receiver_impl.h ('k') | media/cast/cast_sender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/cast_receiver_impl.cc
diff --git a/media/cast/cast_receiver_impl.cc b/media/cast/cast_receiver_impl.cc
index e2c004fe963dccf27442598393ad81cdb76774dc..4f4feb100a1655dbd2a99da071eb21af65c70b77 100644
--- a/media/cast/cast_receiver_impl.cc
+++ b/media/cast/cast_receiver_impl.cc
@@ -66,7 +66,7 @@ class LocalFrameReceiver : public FrameReceiver {
};
// The video and audio receivers should only be called from the main thread.
-class LocalPacketReceiver : public PacketReceiver {
+class LocalPacketReceiver : public transport::PacketReceiver {
public:
LocalPacketReceiver(scoped_refptr<CastEnvironment> cast_environment,
AudioReceiver* audio_receiver,
@@ -149,7 +149,9 @@ CastReceiverImpl::CastReceiverImpl(
const AudioReceiverConfig& audio_config,
const VideoReceiverConfig& video_config,
PacketSender* const packet_sender)
- : pacer_(cast_environment, packet_sender),
+ : pacer_(cast_environment->Clock(), packet_sender,
+ cast_environment->GetMessageTaskRunnerForThread(
+ CastEnvironment::TRANSPORT)),
audio_receiver_(cast_environment, audio_config, &pacer_),
video_receiver_(cast_environment, video_config, &pacer_),
frame_receiver_(new LocalFrameReceiver(cast_environment,
@@ -163,7 +165,7 @@ CastReceiverImpl::CastReceiverImpl(
CastReceiverImpl::~CastReceiverImpl() {}
-scoped_refptr<PacketReceiver> CastReceiverImpl::packet_receiver() {
+scoped_refptr<transport::PacketReceiver> CastReceiverImpl::packet_receiver() {
return packet_receiver_;
}
« no previous file with comments | « media/cast/cast_receiver_impl.h ('k') | media/cast/cast_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698