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 base class for an object that send frames to a receiver. | 5 // This is the base class for an object that send frames to a receiver. |
6 // TODO(hclam): Refactor such that there is no separate AudioSender vs. | 6 // TODO(hclam): Refactor such that there is no separate AudioSender vs. |
7 // VideoSender, and the functionality of both is rolled into this class. | 7 // VideoSender, and the functionality of both is rolled into this class. |
8 | 8 |
9 #ifndef MEDIA_CAST_SENDER_FRAME_SENDER_H_ | 9 #ifndef MEDIA_CAST_SENDER_FRAME_SENDER_H_ |
10 #define MEDIA_CAST_SENDER_FRAME_SENDER_H_ | 10 #define MEDIA_CAST_SENDER_FRAME_SENDER_H_ |
11 | 11 |
12 #include <stdint.h> | 12 #include <stdint.h> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
18 #include "media/cast/cast_environment.h" | 18 #include "media/cast/cast_environment.h" |
19 #include "media/cast/net/rtcp/rtcp.h" | 19 #include "media/cast/net/cast_transport_sender.h" |
| 20 #include "media/cast/net/rtcp/rtcp_defines.h" |
20 #include "media/cast/sender/congestion_control.h" | 21 #include "media/cast/sender/congestion_control.h" |
21 | 22 |
22 namespace media { | 23 namespace media { |
23 namespace cast { | 24 namespace cast { |
24 | 25 |
25 struct SenderEncodedFrame; | 26 struct SenderEncodedFrame; |
26 | 27 |
27 class FrameSender { | 28 class FrameSender { |
28 public: | 29 public: |
29 FrameSender(scoped_refptr<CastEnvironment> cast_environment, | 30 FrameSender(scoped_refptr<CastEnvironment> cast_environment, |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 // NOTE: Weak pointers must be invalidated before all other member variables. | 185 // NOTE: Weak pointers must be invalidated before all other member variables. |
185 base::WeakPtrFactory<FrameSender> weak_factory_; | 186 base::WeakPtrFactory<FrameSender> weak_factory_; |
186 | 187 |
187 DISALLOW_COPY_AND_ASSIGN(FrameSender); | 188 DISALLOW_COPY_AND_ASSIGN(FrameSender); |
188 }; | 189 }; |
189 | 190 |
190 } // namespace cast | 191 } // namespace cast |
191 } // namespace media | 192 } // namespace media |
192 | 193 |
193 #endif // MEDIA_CAST_SENDER_FRAME_SENDER_H_ | 194 #endif // MEDIA_CAST_SENDER_FRAME_SENDER_H_ |
OLD | NEW |