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

Side by Side Diff: media/cast/cast_receiver_impl.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: Created 6 years, 9 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/cast.gyp ('k') | media/cast/logging/encoding_event_subscriber_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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 return new CastReceiverImpl( 90 return new CastReceiverImpl(
91 cast_environment, audio_config, video_config, packet_sender); 91 cast_environment, audio_config, video_config, packet_sender);
92 } 92 }
93 93
94 CastReceiverImpl::CastReceiverImpl( 94 CastReceiverImpl::CastReceiverImpl(
95 scoped_refptr<CastEnvironment> cast_environment, 95 scoped_refptr<CastEnvironment> cast_environment,
96 const AudioReceiverConfig& audio_config, 96 const AudioReceiverConfig& audio_config,
97 const VideoReceiverConfig& video_config, 97 const VideoReceiverConfig& video_config,
98 transport::PacketSender* const packet_sender) 98 transport::PacketSender* const packet_sender)
99 : pacer_(cast_environment->Clock(), 99 : pacer_(cast_environment->Clock(),
100 cast_environment->Logging(),
100 packet_sender, 101 packet_sender,
101 cast_environment->GetMessageSingleThreadTaskRunnerForThread( 102 cast_environment->GetMessageSingleThreadTaskRunnerForThread(
102 CastEnvironment::TRANSPORT)), 103 CastEnvironment::TRANSPORT)),
103 audio_receiver_(cast_environment, audio_config, &pacer_), 104 audio_receiver_(cast_environment, audio_config, &pacer_),
104 video_receiver_(cast_environment, video_config, &pacer_), 105 video_receiver_(cast_environment, video_config, &pacer_),
105 frame_receiver_(new LocalFrameReceiver(cast_environment, 106 frame_receiver_(new LocalFrameReceiver(cast_environment,
106 &audio_receiver_, 107 &audio_receiver_,
107 &video_receiver_)), 108 &video_receiver_)),
108 cast_environment_(cast_environment), 109 cast_environment_(cast_environment),
109 ssrc_of_audio_sender_(audio_config.incoming_ssrc), 110 ssrc_of_audio_sender_(audio_config.incoming_ssrc),
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 transport::PacketReceiverCallback CastReceiverImpl::packet_receiver() { 151 transport::PacketReceiverCallback CastReceiverImpl::packet_receiver() {
151 return base::Bind(&CastReceiverImpl::ReceivedPacket, base::Unretained(this)); 152 return base::Bind(&CastReceiverImpl::ReceivedPacket, base::Unretained(this));
152 } 153 }
153 154
154 scoped_refptr<FrameReceiver> CastReceiverImpl::frame_receiver() { 155 scoped_refptr<FrameReceiver> CastReceiverImpl::frame_receiver() {
155 return frame_receiver_; 156 return frame_receiver_;
156 } 157 }
157 158
158 } // namespace cast 159 } // namespace cast
159 } // namespace media 160 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/cast.gyp ('k') | media/cast/logging/encoding_event_subscriber_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698