OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 transport sender. It accepts encoded | 5 // This is the main interface for the cast transport sender. It accepts encoded |
6 // frames (both audio and video), encrypts their encoded data, packetizes them | 6 // frames (both audio and video), encrypts their encoded data, packetizes them |
7 // and feeds them into a transport (e.g., UDP). | 7 // and feeds them into a transport (e.g., UDP). |
8 | 8 |
9 // Construction of the Cast Sender and the Cast Transport Sender should be done | 9 // Construction of the Cast Sender and the Cast Transport Sender should be done |
10 // in the following order: | 10 // in the following order: |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
46 const std::vector<FrameEvent>&)> | 46 const std::vector<FrameEvent>&)> |
47 BulkRawEventsCallback; | 47 BulkRawEventsCallback; |
48 | 48 |
49 // The application should only trigger this class from the transport thread. | 49 // The application should only trigger this class from the transport thread. |
50 class CastTransportSender : public base::NonThreadSafe { | 50 class CastTransportSender : public base::NonThreadSafe { |
51 public: | 51 public: |
52 static scoped_ptr<CastTransportSender> Create( | 52 static scoped_ptr<CastTransportSender> Create( |
53 net::NetLog* net_log, | 53 net::NetLog* net_log, |
54 base::TickClock* clock, | 54 base::TickClock* clock, |
55 const net::IPEndPoint& remote_end_point, | 55 const net::IPEndPoint& remote_end_point, |
56 const std::string& options, | |
Alpha Left Google
2014/09/09 00:30:46
I suggest this be base::DictionaryValue which is a
hubbe
2014/09/09 20:10:01
Done.
| |
56 const CastTransportStatusCallback& status_callback, | 57 const CastTransportStatusCallback& status_callback, |
57 const BulkRawEventsCallback& raw_events_callback, | 58 const BulkRawEventsCallback& raw_events_callback, |
58 base::TimeDelta raw_events_callback_interval, | 59 base::TimeDelta raw_events_callback_interval, |
59 const scoped_refptr<base::SingleThreadTaskRunner>& transport_task_runner); | 60 const scoped_refptr<base::SingleThreadTaskRunner>& transport_task_runner); |
60 | 61 |
61 virtual ~CastTransportSender() {} | 62 virtual ~CastTransportSender() {} |
62 | 63 |
63 // Audio/Video initialization. | 64 // Audio/Video initialization. |
64 // Encoded frames cannot be transmitted until the relevant initialize method | 65 // Encoded frames cannot be transmitted until the relevant initialize method |
65 // is called. | 66 // is called. |
(...skipping 28 matching lines...) Expand all Loading... | |
94 virtual void ResendFrameForKickstart(uint32 ssrc, uint32 frame_id) = 0; | 95 virtual void ResendFrameForKickstart(uint32 ssrc, uint32 frame_id) = 0; |
95 | 96 |
96 // Returns a callback for receiving packets for testing purposes. | 97 // Returns a callback for receiving packets for testing purposes. |
97 virtual PacketReceiverCallback PacketReceiverForTesting(); | 98 virtual PacketReceiverCallback PacketReceiverForTesting(); |
98 }; | 99 }; |
99 | 100 |
100 } // namespace cast | 101 } // namespace cast |
101 } // namespace media | 102 } // namespace media |
102 | 103 |
103 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_SENDER_H_ | 104 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_SENDER_H_ |
OLD | NEW |