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 // All configurations are done at creation. | 8 // All configurations are done at creation. |
9 | 9 |
10 // Construction of the Cast Sender and the Cast Transport Sender should be done | 10 // Construction of the Cast Sender and the Cast Transport Sender should be done |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "base/basictypes.h" | 26 #include "base/basictypes.h" |
27 #include "base/callback.h" | 27 #include "base/callback.h" |
28 #include "base/task_runner.h" | 28 #include "base/task_runner.h" |
29 #include "base/threading/non_thread_safe.h" | 29 #include "base/threading/non_thread_safe.h" |
30 #include "base/time/tick_clock.h" | 30 #include "base/time/tick_clock.h" |
31 #include "media/cast/transport/cast_transport_config.h" | 31 #include "media/cast/transport/cast_transport_config.h" |
32 #include "media/cast/transport/cast_transport_defines.h" | 32 #include "media/cast/transport/cast_transport_defines.h" |
33 | 33 |
34 namespace media { | 34 namespace media { |
35 namespace cast { | 35 namespace cast { |
| 36 |
| 37 class PacketReceiver; |
| 38 |
36 namespace transport { | 39 namespace transport { |
37 | 40 |
38 typedef base::Callback<void(CastTransportStatus status)> | 41 typedef base::Callback<void(CastTransportStatus status)> |
39 CastTransportStatusCallback; | 42 CastTransportStatusCallback; |
40 | 43 |
41 // The application should only trigger this class from the transport thread. | 44 // The application should only trigger this class from the transport thread. |
42 class CastTransportSender : public base::NonThreadSafe { | 45 class CastTransportSender : public base::NonThreadSafe { |
43 public: | 46 public: |
44 static CastTransportSender* CreateCastTransportSender( | 47 static CastTransportSender* CreateCastTransportSender( |
45 base::TickClock* clock, | 48 base::TickClock* clock, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // Retrieves video RTP statistics. | 86 // Retrieves video RTP statistics. |
84 virtual void RtpVideoStatistics(const base::TimeTicks& now, | 87 virtual void RtpVideoStatistics(const base::TimeTicks& now, |
85 RtcpSenderInfo* sender_info) = 0; | 88 RtcpSenderInfo* sender_info) = 0; |
86 }; | 89 }; |
87 | 90 |
88 } // namespace transport | 91 } // namespace transport |
89 } // namespace cast | 92 } // namespace cast |
90 } // namespace media | 93 } // namespace media |
91 | 94 |
92 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_SENDER_H_ | 95 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_SENDER_H_ |
OLD | NEW |