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 should be done | 9 // Construction of the Cast Sender and the Cast Transport should be done |
10 // in the following order: | 10 // in the following order: |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "media/cast/net/cast_transport_config.h" | 31 #include "media/cast/net/cast_transport_config.h" |
32 #include "media/cast/net/cast_transport_defines.h" | 32 #include "media/cast/net/cast_transport_defines.h" |
33 #include "media/cast/net/rtcp/receiver_rtcp_event_subscriber.h" | 33 #include "media/cast/net/rtcp/receiver_rtcp_event_subscriber.h" |
34 #include "media/cast/net/rtcp/rtcp_defines.h" | 34 #include "media/cast/net/rtcp/rtcp_defines.h" |
35 #include "net/base/ip_endpoint.h" | 35 #include "net/base/ip_endpoint.h" |
36 | 36 |
37 namespace base { | 37 namespace base { |
38 class DictionaryValue; | 38 class DictionaryValue; |
39 } // namespace base | 39 } // namespace base |
40 | 40 |
41 namespace net { | |
42 class NetLog; | |
43 } // namespace net | |
44 | |
45 namespace media { | 41 namespace media { |
46 namespace cast { | 42 namespace cast { |
47 | 43 |
48 struct RtpReceiverStatistics; | |
49 struct RtcpTimeData; | 44 struct RtcpTimeData; |
50 | 45 |
51 // Following the initialization of either audio or video an initialization | 46 // Following the initialization of either audio or video an initialization |
52 // status will be sent via this callback. | 47 // status will be sent via this callback. |
53 using CastTransportStatusCallback = | 48 using CastTransportStatusCallback = |
54 base::Callback<void(CastTransportStatus status)>; | 49 base::Callback<void(CastTransportStatus status)>; |
55 | 50 |
56 using BulkRawEventsCallback = | 51 using BulkRawEventsCallback = |
57 base::Callback<void(std::unique_ptr<std::vector<FrameEvent>>, | 52 base::Callback<void(std::unique_ptr<std::vector<FrameEvent>>, |
58 std::unique_ptr<std::vector<PacketEvent>>)>; | 53 std::unique_ptr<std::vector<PacketEvent>>)>; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 virtual void SendRtcpFromRtpReceiver() = 0; | 163 virtual void SendRtcpFromRtpReceiver() = 0; |
169 | 164 |
170 // Set options for the PacedSender and Wifi. | 165 // Set options for the PacedSender and Wifi. |
171 virtual void SetOptions(const base::DictionaryValue& options) = 0; | 166 virtual void SetOptions(const base::DictionaryValue& options) = 0; |
172 }; | 167 }; |
173 | 168 |
174 } // namespace cast | 169 } // namespace cast |
175 } // namespace media | 170 } // namespace media |
176 | 171 |
177 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_H_ | 172 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_H_ |
OLD | NEW |