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 class maintains a send transport for audio and video in a Cast | 5 // This class maintains a send transport for audio and video in a Cast |
6 // Streaming session. | 6 // Streaming session. |
7 // Audio, video frames and RTCP messages are submitted to this object | 7 // Audio, video frames and RTCP messages are submitted to this object |
8 // and then packetized and paced to the underlying UDP socket. | 8 // and then packetized and paced to the underlying UDP socket. |
9 // | 9 // |
10 // The hierarchy of send transport in a Cast Streaming session: | 10 // The hierarchy of send transport in a Cast Streaming session: |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // |external_transport| is only used for testing. | 51 // |external_transport| is only used for testing. |
52 // |raw_events_callback|: Raw events will be returned on this callback | 52 // |raw_events_callback|: Raw events will be returned on this callback |
53 // which will be invoked every |raw_events_callback_interval|. | 53 // which will be invoked every |raw_events_callback_interval|. |
54 // This can be a null callback, i.e. if user is not interested in raw events. | 54 // This can be a null callback, i.e. if user is not interested in raw events. |
55 // |raw_events_callback_interval|: This can be |base::TimeDelta()| if | 55 // |raw_events_callback_interval|: This can be |base::TimeDelta()| if |
56 // |raw_events_callback| is a null callback. | 56 // |raw_events_callback| is a null callback. |
57 CastTransportSenderImpl( | 57 CastTransportSenderImpl( |
58 net::NetLog* net_log, | 58 net::NetLog* net_log, |
59 base::TickClock* clock, | 59 base::TickClock* clock, |
60 const net::IPEndPoint& remote_end_point, | 60 const net::IPEndPoint& remote_end_point, |
| 61 scoped_ptr<base::DictionaryValue> options, |
61 const CastTransportStatusCallback& status_callback, | 62 const CastTransportStatusCallback& status_callback, |
62 const BulkRawEventsCallback& raw_events_callback, | 63 const BulkRawEventsCallback& raw_events_callback, |
63 base::TimeDelta raw_events_callback_interval, | 64 base::TimeDelta raw_events_callback_interval, |
64 const scoped_refptr<base::SingleThreadTaskRunner>& transport_task_runner, | 65 const scoped_refptr<base::SingleThreadTaskRunner>& transport_task_runner, |
65 PacketSender* external_transport); | 66 PacketSender* external_transport); |
66 | 67 |
67 virtual ~CastTransportSenderImpl(); | 68 virtual ~CastTransportSenderImpl(); |
68 | 69 |
69 virtual void InitializeAudio(const CastTransportRtpConfig& config, | 70 virtual void InitializeAudio(const CastTransportRtpConfig& config, |
70 const RtcpCastMessageCallback& cast_message_cb, | 71 const RtcpCastMessageCallback& cast_message_cb, |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 160 |
160 base::WeakPtrFactory<CastTransportSenderImpl> weak_factory_; | 161 base::WeakPtrFactory<CastTransportSenderImpl> weak_factory_; |
161 | 162 |
162 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderImpl); | 163 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderImpl); |
163 }; | 164 }; |
164 | 165 |
165 } // namespace cast | 166 } // namespace cast |
166 } // namespace media | 167 } // namespace media |
167 | 168 |
168 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_IMPL_H_ | 169 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_IMPL_H_ |
OLD | NEW |