| 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 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: |
| 11 // 1. Create CastTransportSender. | 11 // 1. Create CastTransportSender. |
| 12 // 2. Create CastSender (accepts CastTransportSender as an input). | 12 // 2. Create CastSender (accepts CastTransportSender as an input). |
| 13 | 13 |
| 14 // Destruction: The CastTransportSender is assumed to be valid as long as the | 14 // Destruction: The CastTransportSender is assumed to be valid as long as the |
| 15 // CastSender is alive. Therefore the CastSender should be destructed before the | 15 // CastSender is alive. Therefore the CastSender should be destructed before the |
| 16 // CastTransportSender. | 16 // CastTransportSender. |
| 17 | 17 |
| 18 #ifndef MEDIA_CAST_NET_CAST_TRANSPORT_SENDER_H_ | 18 #ifndef MEDIA_CAST_NET_CAST_TRANSPORT_SENDER_H_ |
| 19 #define MEDIA_CAST_NET_CAST_TRANSPORT_SENDER_H_ | 19 #define MEDIA_CAST_NET_CAST_TRANSPORT_SENDER_H_ |
| 20 | 20 |
| 21 #include <stdint.h> |
| 22 |
| 21 #include "base/callback.h" | 23 #include "base/callback.h" |
| 22 #include "base/memory/scoped_ptr.h" | 24 #include "base/memory/scoped_ptr.h" |
| 23 #include "base/single_thread_task_runner.h" | 25 #include "base/single_thread_task_runner.h" |
| 24 #include "base/threading/non_thread_safe.h" | 26 #include "base/threading/non_thread_safe.h" |
| 25 #include "base/time/tick_clock.h" | 27 #include "base/time/tick_clock.h" |
| 26 #include "media/cast/logging/logging_defines.h" | 28 #include "media/cast/logging/logging_defines.h" |
| 27 #include "media/cast/net/cast_transport_config.h" | 29 #include "media/cast/net/cast_transport_config.h" |
| 28 #include "media/cast/net/cast_transport_defines.h" | 30 #include "media/cast/net/cast_transport_defines.h" |
| 29 #include "media/cast/net/rtcp/receiver_rtcp_event_subscriber.h" | 31 #include "media/cast/net/rtcp/receiver_rtcp_event_subscriber.h" |
| 30 #include "media/cast/net/rtcp/rtcp_defines.h" | 32 #include "media/cast/net/rtcp/rtcp_defines.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 const RtcpCastMessage* cast_message, | 121 const RtcpCastMessage* cast_message, |
| 120 base::TimeDelta target_delay, | 122 base::TimeDelta target_delay, |
| 121 const ReceiverRtcpEventSubscriber::RtcpEvents* rtcp_events, | 123 const ReceiverRtcpEventSubscriber::RtcpEvents* rtcp_events, |
| 122 const RtpReceiverStatistics* rtp_receiver_statistics) = 0; | 124 const RtpReceiverStatistics* rtp_receiver_statistics) = 0; |
| 123 }; | 125 }; |
| 124 | 126 |
| 125 } // namespace cast | 127 } // namespace cast |
| 126 } // namespace media | 128 } // namespace media |
| 127 | 129 |
| 128 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_SENDER_H_ | 130 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_SENDER_H_ |
| OLD | NEW |