OLD | NEW |
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 transport sender. The cast sender | 5 // This is the main interface for the cast transport sender. The cast sender |
6 // handles the cast pipeline from encoded frames (both audio and video), to | 6 // handles the cast pipeline from encoded frames (both audio and video), to |
7 // encryption, packetization and transport. | 7 // encryption, packetization and transport. |
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 typedef base::Callback<void(const std::vector<PacketEvent>&)> | 53 typedef base::Callback<void(const std::vector<PacketEvent>&)> |
54 BulkRawEventsCallback; | 54 BulkRawEventsCallback; |
55 | 55 |
56 // The application should only trigger this class from the transport thread. | 56 // The application should only trigger this class from the transport thread. |
57 class CastTransportSender : public base::NonThreadSafe { | 57 class CastTransportSender : public base::NonThreadSafe { |
58 public: | 58 public: |
59 static scoped_ptr<CastTransportSender> Create( | 59 static scoped_ptr<CastTransportSender> Create( |
60 net::NetLog* net_log, | 60 net::NetLog* net_log, |
61 base::TickClock* clock, | 61 base::TickClock* clock, |
62 const net::IPEndPoint& remote_end_point, | 62 const net::IPEndPoint& remote_end_point, |
63 const CastLoggingConfig& logging_config, | |
64 const CastTransportStatusCallback& status_callback, | 63 const CastTransportStatusCallback& status_callback, |
65 const BulkRawEventsCallback& raw_events_callback, | 64 const BulkRawEventsCallback& raw_events_callback, |
66 base::TimeDelta raw_events_callback_interval, | 65 base::TimeDelta raw_events_callback_interval, |
67 const scoped_refptr<base::SingleThreadTaskRunner>& transport_task_runner); | 66 const scoped_refptr<base::SingleThreadTaskRunner>& transport_task_runner); |
68 | 67 |
69 virtual ~CastTransportSender() {} | 68 virtual ~CastTransportSender() {} |
70 | 69 |
71 // Audio/Video initialization. | 70 // Audio/Video initialization. |
72 // Encoded frames cannot be transmitted until the relevant initialize method | 71 // Encoded frames cannot be transmitted until the relevant initialize method |
73 // is called. | 72 // is called. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 109 |
111 virtual void SubscribeVideoRtpStatsCallback( | 110 virtual void SubscribeVideoRtpStatsCallback( |
112 const CastTransportRtpStatistics& callback) = 0; | 111 const CastTransportRtpStatistics& callback) = 0; |
113 }; | 112 }; |
114 | 113 |
115 } // namespace transport | 114 } // namespace transport |
116 } // namespace cast | 115 } // namespace cast |
117 } // namespace media | 116 } // namespace media |
118 | 117 |
119 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_SENDER_H_ | 118 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_SENDER_H_ |
OLD | NEW |