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 #ifndef MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_IMPL_H_ | 5 #ifndef MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_IMPL_H_ |
6 #define MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_IMPL_H_ | 6 #define MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_IMPL_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/time/tick_clock.h" | 11 #include "base/time/tick_clock.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "base/timer/timer.h" | 13 #include "base/timer/timer.h" |
| 14 #include "media/cast/common/transport_encryption_handler.h" |
14 #include "media/cast/logging/logging_defines.h" | 15 #include "media/cast/logging/logging_defines.h" |
15 #include "media/cast/logging/simple_event_subscriber.h" | 16 #include "media/cast/logging/simple_event_subscriber.h" |
16 #include "media/cast/transport/cast_transport_config.h" | 17 #include "media/cast/transport/cast_transport_config.h" |
17 #include "media/cast/transport/cast_transport_sender.h" | 18 #include "media/cast/transport/cast_transport_sender.h" |
18 #include "media/cast/transport/pacing/paced_sender.h" | 19 #include "media/cast/transport/pacing/paced_sender.h" |
19 #include "media/cast/transport/rtcp/rtcp_builder.h" | 20 #include "media/cast/transport/rtcp/rtcp_builder.h" |
20 #include "media/cast/transport/rtp_sender/rtp_sender.h" | 21 #include "media/cast/transport/rtp/rtp_sender.h" |
21 #include "media/cast/transport/utility/transport_encryption_handler.h" | |
22 | 22 |
23 namespace media { | 23 namespace media { |
24 namespace cast { | 24 namespace cast { |
25 namespace transport { | 25 namespace transport { |
26 | 26 |
| 27 class UdpTransport; |
| 28 |
27 class CastTransportSenderImpl : public CastTransportSender { | 29 class CastTransportSenderImpl : public CastTransportSender { |
28 public: | 30 public: |
29 // external_transport is only used for testing. | 31 // external_transport is only used for testing. |
30 // Note that SetPacketReceiver does not work if an external | 32 // Note that SetPacketReceiver does not work if an external |
31 // transport is provided. | 33 // transport is provided. |
32 // |raw_events_callback|: Raw events will be returned on this callback | 34 // |raw_events_callback|: Raw events will be returned on this callback |
33 // which will be invoked every |raw_events_callback_interval|. | 35 // which will be invoked every |raw_events_callback_interval|. |
34 // This can be a null callback, i.e. if user is not interested in raw events. | 36 // This can be a null callback, i.e. if user is not interested in raw events. |
35 // |raw_events_callback_interval|: This can be |base::TimeDelta()| if | 37 // |raw_events_callback_interval|: This can be |base::TimeDelta()| if |
36 // |raw_events_callback| is a null callback. | 38 // |raw_events_callback| is a null callback. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 BulkRawEventsCallback raw_events_callback_; | 102 BulkRawEventsCallback raw_events_callback_; |
101 | 103 |
102 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderImpl); | 104 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderImpl); |
103 }; | 105 }; |
104 | 106 |
105 } // namespace transport | 107 } // namespace transport |
106 } // namespace cast | 108 } // namespace cast |
107 } // namespace media | 109 } // namespace media |
108 | 110 |
109 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_IMPL_H_ | 111 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_IMPL_H_ |
OLD | NEW |