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

Side by Side Diff: media/cast/cast_receiver_impl.cc

Issue 131233007: Cast: Clean up injection of transport into PacedPacketSender (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merged 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 unified diff | Download patch
« no previous file with comments | « media/cast/audio_sender/audio_sender_unittest.cc ('k') | media/cast/rtcp/rtcp_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/cast/cast_receiver_impl.h" 5 #include "media/cast/cast_receiver_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 audio_config, 81 audio_config,
82 video_config, 82 video_config,
83 packet_sender); 83 packet_sender);
84 } 84 }
85 85
86 CastReceiverImpl::CastReceiverImpl( 86 CastReceiverImpl::CastReceiverImpl(
87 scoped_refptr<CastEnvironment> cast_environment, 87 scoped_refptr<CastEnvironment> cast_environment,
88 const AudioReceiverConfig& audio_config, 88 const AudioReceiverConfig& audio_config,
89 const VideoReceiverConfig& video_config, 89 const VideoReceiverConfig& video_config,
90 transport::PacketSender* const packet_sender) 90 transport::PacketSender* const packet_sender)
91 : pacer_(cast_environment->Clock(), NULL, packet_sender, 91 : pacer_(cast_environment->Clock(),
92 packet_sender,
92 cast_environment->GetMessageTaskRunnerForThread( 93 cast_environment->GetMessageTaskRunnerForThread(
93 CastEnvironment::TRANSPORT), 94 CastEnvironment::TRANSPORT)),
94 base::Bind(&DoNothingCastTransportStatus)),
95 audio_receiver_(cast_environment, audio_config, &pacer_), 95 audio_receiver_(cast_environment, audio_config, &pacer_),
96 video_receiver_(cast_environment, video_config, &pacer_), 96 video_receiver_(cast_environment, video_config, &pacer_),
97 frame_receiver_(new LocalFrameReceiver(cast_environment, 97 frame_receiver_(new LocalFrameReceiver(cast_environment,
98 &audio_receiver_, 98 &audio_receiver_,
99 &video_receiver_)), 99 &video_receiver_)),
100 cast_environment_(cast_environment), 100 cast_environment_(cast_environment),
101 ssrc_of_audio_sender_(audio_config.incoming_ssrc), 101 ssrc_of_audio_sender_(audio_config.incoming_ssrc),
102 ssrc_of_video_sender_(video_config.incoming_ssrc) { 102 ssrc_of_video_sender_(video_config.incoming_ssrc) {
103 } 103 }
104 104
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 return base::Bind(&CastReceiverImpl::ReceivedPacket, 142 return base::Bind(&CastReceiverImpl::ReceivedPacket,
143 base::Unretained(this)); 143 base::Unretained(this));
144 } 144 }
145 145
146 scoped_refptr<FrameReceiver> CastReceiverImpl::frame_receiver() { 146 scoped_refptr<FrameReceiver> CastReceiverImpl::frame_receiver() {
147 return frame_receiver_; 147 return frame_receiver_;
148 } 148 }
149 149
150 } // namespace cast 150 } // namespace cast
151 } // namespace media 151 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/audio_sender/audio_sender_unittest.cc ('k') | media/cast/rtcp/rtcp_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698