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

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

Issue 126843003: Revert of Cast:Adding cast_transport_config and cleaning up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
« no previous file with comments | « media/cast/cast_receiver_impl.cc ('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. All configuration are done 5 // This is the main interface for the cast sender. All configuration are done
6 // at creation. 6 // at creation.
7 // 7 //
8 // The FrameInput and PacketReciever interfaces should normally be accessed from 8 // The FrameInput and PacketReciever interfaces should normally be accessed from
9 // the IO thread. However they are allowed to be called from any thread. 9 // the IO thread. However they are allowed to be called from any thread.
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // done with |audio_bus|; it does not mean that the encoded data has been 44 // done with |audio_bus|; it does not mean that the encoded data has been
45 // sent out. 45 // sent out.
46 virtual void InsertAudio(const AudioBus* audio_bus, 46 virtual void InsertAudio(const AudioBus* audio_bus,
47 const base::TimeTicks& recorded_time, 47 const base::TimeTicks& recorded_time,
48 const base::Closure& done_callback) = 0; 48 const base::Closure& done_callback) = 0;
49 49
50 // The audio_frame must be valid until the callback is called. 50 // The audio_frame must be valid until the callback is called.
51 // The callback is called from the main cast thread as soon as 51 // The callback is called from the main cast thread as soon as
52 // the cast sender is done with the frame; it does not mean that the encoded 52 // the cast sender is done with the frame; it does not mean that the encoded
53 // frame has been sent out. 53 // frame has been sent out.
54 virtual void InsertCodedAudioFrame( 54 virtual void InsertCodedAudioFrame(const EncodedAudioFrame* audio_frame,
55 const transport::EncodedAudioFrame* audio_frame, 55 const base::TimeTicks& recorded_time,
56 const base::TimeTicks& recorded_time, 56 const base::Closure callback) = 0;
57 const base::Closure callback) = 0;
58 57
59 protected: 58 protected:
60 virtual ~FrameInput() {} 59 virtual ~FrameInput() {}
61 60
62 private: 61 private:
63 friend class base::RefCountedThreadSafe<FrameInput>; 62 friend class base::RefCountedThreadSafe<FrameInput>;
64 }; 63 };
65 64
66 // This Class is thread safe. 65 // This Class is thread safe.
67 // The provided PacketSender object will always be called form the main cast 66 // The provided PacketSender object will always be called form the main cast
(...skipping 10 matching lines...) Expand all
78 77
79 virtual ~CastSender() {} 78 virtual ~CastSender() {}
80 79
81 // All audio and video frames for the session should be inserted to this 80 // All audio and video frames for the session should be inserted to this
82 // object. 81 // object.
83 // Can be called from any thread. 82 // Can be called from any thread.
84 virtual scoped_refptr<FrameInput> frame_input() = 0; 83 virtual scoped_refptr<FrameInput> frame_input() = 0;
85 84
86 // All RTCP packets for the session should be inserted to this object. 85 // All RTCP packets for the session should be inserted to this object.
87 // Can be called from any thread. 86 // Can be called from any thread.
88 virtual scoped_refptr<transport::PacketReceiver> packet_receiver() = 0; 87 virtual scoped_refptr<PacketReceiver> packet_receiver() = 0;
89 }; 88 };
90 89
91 } // namespace cast 90 } // namespace cast
92 } // namespace media 91 } // namespace media
93 92
94 #endif // MEDIA_CAST_CAST_SENDER_H_ 93 #endif // MEDIA_CAST_CAST_SENDER_H_
OLDNEW
« no previous file with comments | « media/cast/cast_receiver_impl.cc ('k') | media/cast/cast_sender_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698