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 class maintains a send transport for audio and video in a Cast | 5 // This class maintains a send transport for audio and video in a Cast |
6 // Streaming session. | 6 // Streaming session. |
7 // Audio, video frames and RTCP messages are submitted to this object | 7 // Audio, video frames and RTCP messages are submitted to this object |
8 // and then packetized and paced to the underlying UDP socket. | 8 // and then packetized and paced to the underlying UDP socket. |
9 // | 9 // |
10 // The hierarchy of send transport in a Cast Streaming session: | 10 // The hierarchy of send transport in a Cast Streaming session: |
11 // | 11 // |
12 // CastTransportSender RTP RTCP | 12 // CastTransportSender RTP RTCP |
13 // ------------------------------------------------------------------ | 13 // ------------------------------------------------------------------ |
14 // TransportEncryptionHandler (A/V) | 14 // TransportEncryptionHandler (A/V) |
15 // RtpSender (A/V) Rtcp (A/V) | 15 // RtpSender (A/V) Rtcp (A/V) |
16 // PacedSender (Shared) | 16 // PacedSender (Shared) |
17 // UdpTransport (Shared) | 17 // UdpTransport (Shared) |
18 // | 18 // |
19 // There are objects of TransportEncryptionHandler, RtpSender and Rtcp | 19 // There are objects of TransportEncryptionHandler, RtpSender and Rtcp |
20 // for each audio and video stream. | 20 // for each audio and video stream. |
21 // PacedSender and UdpTransport are shared between all RTP and RTCP | 21 // PacedSender and UdpTransport are shared between all RTP and RTCP |
22 // streams. | 22 // streams. |
23 | 23 |
24 #ifndef MEDIA_CAST_NET_CAST_TRANSPORT_SENDER_IMPL_H_ | 24 #ifndef MEDIA_CAST_NET_CAST_TRANSPORT_SENDER_IMPL_H_ |
25 #define MEDIA_CAST_NET_CAST_TRANSPORT_SENDER_IMPL_H_ | 25 #define MEDIA_CAST_NET_CAST_TRANSPORT_SENDER_IMPL_H_ |
26 | 26 |
| 27 #include <stdint.h> |
| 28 |
27 #include <set> | 29 #include <set> |
28 #include <vector> | 30 #include <vector> |
29 | 31 |
30 #include "base/callback.h" | 32 #include "base/callback.h" |
31 #include "base/gtest_prod_util.h" | 33 #include "base/gtest_prod_util.h" |
32 #include "base/macros.h" | 34 #include "base/macros.h" |
33 #include "base/memory/ref_counted.h" | 35 #include "base/memory/ref_counted.h" |
34 #include "base/memory/scoped_ptr.h" | 36 #include "base/memory/scoped_ptr.h" |
35 #include "base/memory/weak_ptr.h" | 37 #include "base/memory/weak_ptr.h" |
36 #include "base/time/tick_clock.h" | 38 #include "base/time/tick_clock.h" |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 208 |
207 base::WeakPtrFactory<CastTransportSenderImpl> weak_factory_; | 209 base::WeakPtrFactory<CastTransportSenderImpl> weak_factory_; |
208 | 210 |
209 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderImpl); | 211 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderImpl); |
210 }; | 212 }; |
211 | 213 |
212 } // namespace cast | 214 } // namespace cast |
213 } // namespace media | 215 } // namespace media |
214 | 216 |
215 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_SENDER_IMPL_H_ | 217 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_SENDER_IMPL_H_ |
OLD | NEW |