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

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

Issue 100823015: Cast: move net->transport (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up Created 7 years 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_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ 5 #ifndef MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_
6 #define MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ 6 #define MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 12 matching lines...) Expand all
23 namespace crypto { 23 namespace crypto {
24 class Encryptor; 24 class Encryptor;
25 } 25 }
26 26
27 namespace media { 27 namespace media {
28 namespace cast { 28 namespace cast {
29 29
30 class Framer; 30 class Framer;
31 class LocalRtpVideoData; 31 class LocalRtpVideoData;
32 class LocalRtpVideoFeedback; 32 class LocalRtpVideoFeedback;
33 class PacedPacketSender; 33 class transport::PacedPacketSender;
34 class PeerVideoReceiver; 34 class PeerVideoReceiver;
35 class Rtcp; 35 class Rtcp;
36 class RtpReceiverStatistics; 36 class RtpReceiverStatistics;
37 class VideoDecoder; 37 class VideoDecoder;
38 38
39 // Should only be called from the Main cast thread. 39 // Should only be called from the Main cast thread.
40 class VideoReceiver : public base::NonThreadSafe, 40 class VideoReceiver : public base::NonThreadSafe,
41 public base::SupportsWeakPtr<VideoReceiver> { 41 public base::SupportsWeakPtr<VideoReceiver> {
42 public: 42 public:
43 VideoReceiver(scoped_refptr<CastEnvironment> cast_environment, 43 VideoReceiver(scoped_refptr<CastEnvironment> cast_environment,
44 const VideoReceiverConfig& video_config, 44 const VideoReceiverConfig& video_config,
45 PacedPacketSender* const packet_sender); 45 transport::PacedPacketSender* const packet_sender);
46 46
47 virtual ~VideoReceiver(); 47 virtual ~VideoReceiver();
48 48
49 // Request a raw frame. Will return frame via callback when available. 49 // Request a raw frame. Will return frame via callback when available.
50 void GetRawVideoFrame(const VideoFrameDecodedCallback& callback); 50 void GetRawVideoFrame(const VideoFrameDecodedCallback& callback);
51 51
52 // Request an encoded frame. Will return frame via callback when available. 52 // Request an encoded frame. Will return frame via callback when available.
53 void GetEncodedVideoFrame(const VideoFrameEncodedCallback& callback); 53 void GetEncodedVideoFrame(const VideoFrameEncodedCallback& callback);
54 54
55 // Insert a RTP packet to the video receiver. 55 // Insert a RTP packet to the video receiver.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 base::WeakPtrFactory<VideoReceiver> weak_factory_; 125 base::WeakPtrFactory<VideoReceiver> weak_factory_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(VideoReceiver); 127 DISALLOW_COPY_AND_ASSIGN(VideoReceiver);
128 }; 128 };
129 129
130 } // namespace cast 130 } // namespace cast
131 } // namespace media 131 } // namespace media
132 132
133 #endif // MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ 133 #endif // MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698