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

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

Issue 2533273002: media: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 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
« no previous file with comments | « media/blink/webmediaplayer_params.h ('k') | media/cast/cast_sender_impl.h » ('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 // This is the main interface for the cast sender. 5 // This is the main interface for the cast sender.
6 // 6 //
7 // The AudioFrameInput, VideoFrameInput and PacketReciever interfaces should 7 // The AudioFrameInput, VideoFrameInput and PacketReciever interfaces should
8 // be accessed from the main thread. 8 // be accessed from the main thread.
9 9
10 #ifndef MEDIA_CAST_CAST_SENDER_H_ 10 #ifndef MEDIA_CAST_CAST_SENDER_H_
(...skipping 12 matching lines...) Expand all
23 #include "media/cast/net/cast_transport.h" 23 #include "media/cast/net/cast_transport.h"
24 24
25 namespace gfx { 25 namespace gfx {
26 class Size; 26 class Size;
27 } 27 }
28 28
29 namespace media { 29 namespace media {
30 class VideoFrame; 30 class VideoFrame;
31 31
32 namespace cast { 32 namespace cast {
33 class AudioSender;
34 class VideoSender;
35 33
36 class VideoFrameInput : public base::RefCountedThreadSafe<VideoFrameInput> { 34 class VideoFrameInput : public base::RefCountedThreadSafe<VideoFrameInput> {
37 public: 35 public:
38 // Insert video frames into Cast sender. Frames will be encoded, packetized 36 // Insert video frames into Cast sender. Frames will be encoded, packetized
39 // and sent to the network. 37 // and sent to the network.
40 virtual void InsertRawVideoFrame( 38 virtual void InsertRawVideoFrame(
41 const scoped_refptr<media::VideoFrame>& video_frame, 39 const scoped_refptr<media::VideoFrame>& video_frame,
42 const base::TimeTicks& capture_time) = 0; 40 const base::TimeTicks& capture_time) = 0;
43 41
44 // Creates a |VideoFrame| optimized for the encoder. When available, these 42 // Creates a |VideoFrame| optimized for the encoder. When available, these
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // Change the target delay. This is only valid if the receiver 118 // Change the target delay. This is only valid if the receiver
121 // supports the "adaptive_target_delay" rtp extension. 119 // supports the "adaptive_target_delay" rtp extension.
122 virtual void SetTargetPlayoutDelay( 120 virtual void SetTargetPlayoutDelay(
123 base::TimeDelta new_target_playout_delay) = 0; 121 base::TimeDelta new_target_playout_delay) = 0;
124 }; 122 };
125 123
126 } // namespace cast 124 } // namespace cast
127 } // namespace media 125 } // namespace media
128 126
129 #endif // MEDIA_CAST_CAST_SENDER_H_ 127 #endif // MEDIA_CAST_CAST_SENDER_H_
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_params.h ('k') | media/cast/cast_sender_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698