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: |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "base/time/time.h" | 35 #include "base/time/time.h" |
36 #include "media/cast/common/transport_encryption_handler.h" | 36 #include "media/cast/common/transport_encryption_handler.h" |
37 #include "media/cast/logging/logging_defines.h" | 37 #include "media/cast/logging/logging_defines.h" |
38 #include "media/cast/logging/simple_event_subscriber.h" | 38 #include "media/cast/logging/simple_event_subscriber.h" |
39 #include "media/cast/net/cast_transport_config.h" | 39 #include "media/cast/net/cast_transport_config.h" |
40 #include "media/cast/net/cast_transport_sender.h" | 40 #include "media/cast/net/cast_transport_sender.h" |
41 #include "media/cast/net/pacing/paced_sender.h" | 41 #include "media/cast/net/pacing/paced_sender.h" |
42 #include "media/cast/net/rtcp/rtcp.h" | 42 #include "media/cast/net/rtcp/rtcp.h" |
43 #include "media/cast/net/rtp/rtp_parser.h" | 43 #include "media/cast/net/rtp/rtp_parser.h" |
44 #include "media/cast/net/rtp/rtp_sender.h" | 44 #include "media/cast/net/rtp/rtp_sender.h" |
| 45 #include "net/base/net_util.h" |
45 | 46 |
46 namespace media { | 47 namespace media { |
47 namespace cast { | 48 namespace cast { |
48 | 49 |
49 class UdpTransport; | 50 class UdpTransport; |
50 | 51 |
51 class CastTransportSenderImpl : public CastTransportSender { | 52 class CastTransportSenderImpl : public CastTransportSender { |
52 public: | 53 public: |
53 // |external_transport| is only used for testing. | 54 // |external_transport| is only used for testing. |
54 // |raw_events_callback|: Raw events will be returned on this callback | 55 // |raw_events_callback|: Raw events will be returned on this callback |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 | 200 |
200 base::WeakPtrFactory<CastTransportSenderImpl> weak_factory_; | 201 base::WeakPtrFactory<CastTransportSenderImpl> weak_factory_; |
201 | 202 |
202 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderImpl); | 203 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderImpl); |
203 }; | 204 }; |
204 | 205 |
205 } // namespace cast | 206 } // namespace cast |
206 } // namespace media | 207 } // namespace media |
207 | 208 |
208 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_SENDER_IMPL_H_ | 209 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_SENDER_IMPL_H_ |
OLD | NEW |