Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
|
acolwell GONE FROM CHROMIUM
2014/02/13 19:28:58
nit: You shouldn't need to update this, since it i
hubbe
2014/02/14 00:03:24
Ops, fixed.
| |
| 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 |
| 11 // in the following order: | 11 // in the following order: |
| (...skipping 14 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/single_thread_task_runner.h" | 28 #include "base/single_thread_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 typedef base::Callback<void(RtcpSenderInfo& sender_info, | 44 typedef base::Callback<void(const RtcpSenderInfo& sender_info, |
| 42 base::TimeTicks time_sent, | 45 base::TimeTicks time_sent, |
| 43 uint32 rtp_timestamp)> CastTransportRtpStatistics; | 46 uint32 rtp_timestamp)> CastTransportRtpStatistics; |
| 44 | 47 |
| 45 // The application should only trigger this class from the transport thread. | 48 // The application should only trigger this class from the transport thread. |
| 46 class CastTransportSender : public base::NonThreadSafe { | 49 class CastTransportSender : public base::NonThreadSafe { |
| 47 public: | 50 public: |
| 48 static CastTransportSender* CreateCastTransportSender( | 51 static CastTransportSender* CreateCastTransportSender( |
| 49 base::TickClock* clock, | 52 base::TickClock* clock, |
| 50 const CastTransportConfig& config, | 53 const CastTransportConfig& config, |
| 51 const CastTransportStatusCallback& status_callback, | 54 const CastTransportStatusCallback& status_callback, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 88 | 91 |
| 89 virtual void SubscribeVideoRtpStatsCallback( | 92 virtual void SubscribeVideoRtpStatsCallback( |
| 90 const CastTransportRtpStatistics& callback) = 0; | 93 const CastTransportRtpStatistics& callback) = 0; |
| 91 }; | 94 }; |
| 92 | 95 |
| 93 } // namespace transport | 96 } // namespace transport |
| 94 } // namespace cast | 97 } // namespace cast |
| 95 } // namespace media | 98 } // namespace media |
| 96 | 99 |
| 97 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_SENDER_H_ | 100 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_SENDER_H_ |
| OLD | NEW |