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

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

Issue 192843002: Cast:Adding signaling and infrastructure for adjustable delay (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updates 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 | Annotate | Revision Log
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 #ifndef MEDIA_CAST_CAST_RECEIVER_IMPL_H_ 5 #ifndef MEDIA_CAST_CAST_RECEIVER_IMPL_H_
6 #define MEDIA_CAST_CAST_RECEIVER_IMPL_H_ 6 #define MEDIA_CAST_CAST_RECEIVER_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "media/cast/audio_receiver/audio_receiver.h" 10 #include "media/cast/audio_receiver/audio_receiver.h"
11 #include "media/cast/cast_config.h" 11 #include "media/cast/cast_config.h"
12 #include "media/cast/cast_environment.h" 12 #include "media/cast/cast_environment.h"
13 #include "media/cast/cast_receiver.h" 13 #include "media/cast/cast_receiver.h"
14 #include "media/cast/transport/pacing/paced_sender.h" 14 #include "media/cast/transport/pacing/paced_sender.h"
15 #include "media/cast/video_receiver/video_receiver.h" 15 #include "media/cast/video_receiver/video_receiver.h"
16 16
17 namespace media { 17 namespace media {
18 namespace cast { 18 namespace cast {
19
20 // This calls is a pure owner class that group all required receive objects 19 // This calls is a pure owner class that group all required receive objects
21 // together such as pacer, packet receiver, frame receiver, audio and video 20 // together such as pacer, packet receiver, frame receiver, audio and video
22 // receivers. 21 // receivers.
23 class CastReceiverImpl : public CastReceiver { 22 class CastReceiverImpl : public CastReceiver {
24 public: 23 public:
25 CastReceiverImpl(scoped_refptr<CastEnvironment> cast_environment, 24 CastReceiverImpl(scoped_refptr<CastEnvironment> cast_environment,
26 const AudioReceiverConfig& audio_config, 25 const AudioReceiverConfig& audio_config,
27 const VideoReceiverConfig& video_config, 26 const VideoReceiverConfig& video_config,
28 transport::PacketSender* const packet_sender); 27 transport::PacketSender* const packet_sender);
29 28
30 virtual ~CastReceiverImpl(); 29 virtual ~CastReceiverImpl();
31 30
32 // All received RTP and RTCP packets for the call should be sent to this 31 // All received RTP and RTCP packets for the call should be sent to this
33 // PacketReceiver; 32 // PacketReceiver;
34 virtual transport::PacketReceiverCallback packet_receiver() OVERRIDE; 33 virtual transport::PacketReceiverCallback packet_receiver() OVERRIDE;
35 34
36 // Interface to get audio and video frames from the CastReceiver. 35 // Interface to get audio and video frames from the CastReceiver.
37 virtual scoped_refptr<FrameReceiver> frame_receiver() OVERRIDE; 36 virtual scoped_refptr<FrameReceiver> frame_receiver() OVERRIDE;
38 37
39 private: 38 private:
40 void ReceivedPacket(scoped_ptr<Packet> packet); 39 void ReceivedPacket(scoped_ptr<Packet> packet);
41 40
42 transport::PacedSender pacer_; 41 transport::PacedSender pacer_;
43 AudioReceiver audio_receiver_; 42 AudioReceiver audio_receiver_;
44 VideoReceiver video_receiver_; 43 VideoReceiver video_receiver_;
45 scoped_refptr<FrameReceiver> frame_receiver_; 44 scoped_refptr<FrameReceiver> frame_receiver_;
46 scoped_refptr<CastEnvironment> cast_environment_; 45 scoped_refptr<CastEnvironment> cast_environment_;
46 SetTargetDelayCallback target_delay_cb_;
pwestin(chromium) 2014/03/11 22:07:55 remove this
mikhal1 2014/03/12 18:01:59 Done.
47 const uint32 ssrc_of_audio_sender_; 47 const uint32 ssrc_of_audio_sender_;
48 const uint32 ssrc_of_video_sender_; 48 const uint32 ssrc_of_video_sender_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(CastReceiverImpl); 50 DISALLOW_COPY_AND_ASSIGN(CastReceiverImpl);
51 }; 51 };
52 52
53 } // namespace cast 53 } // namespace cast
54 } // namespace media 54 } // namespace media
55 55
56 #endif // MEDIA_CAST_CAST_RECEIVER_IMPL_ 56 #endif // MEDIA_CAST_CAST_RECEIVER_IMPL_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698