OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_ENCODER_H_ | 5 #ifndef REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_ENCODER_H_ |
6 #define REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_ENCODER_H_ | 6 #define REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_ENCODER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "base/single_thread_task_runner.h" |
14 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
15 #include "remoting/codec/webrtc_video_encoder.h" | 16 #include "remoting/codec/webrtc_video_encoder.h" |
16 #include "third_party/webrtc/media/engine/webrtcvideoencoderfactory.h" | 17 #include "third_party/webrtc/media/engine/webrtcvideoencoderfactory.h" |
17 #include "third_party/webrtc/modules/video_coding/include/video_codec_interface.
h" | 18 #include "third_party/webrtc/modules/video_coding/include/video_codec_interface.
h" |
18 | 19 |
19 namespace remoting { | 20 namespace remoting { |
20 namespace protocol { | 21 namespace protocol { |
21 | 22 |
22 class VideoChannelStateObserver; | 23 class VideoChannelStateObserver; |
23 | 24 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // Protects |video_channel_state_observer_| and |encoders_|. | 98 // Protects |video_channel_state_observer_| and |encoders_|. |
98 base::Lock lock_; | 99 base::Lock lock_; |
99 base::WeakPtr<VideoChannelStateObserver> video_channel_state_observer_; | 100 base::WeakPtr<VideoChannelStateObserver> video_channel_state_observer_; |
100 std::vector<std::unique_ptr<WebrtcDummyVideoEncoder>> encoders_; | 101 std::vector<std::unique_ptr<WebrtcDummyVideoEncoder>> encoders_; |
101 }; | 102 }; |
102 | 103 |
103 } // namespace protocol | 104 } // namespace protocol |
104 } // namespace remoting | 105 } // namespace remoting |
105 | 106 |
106 #endif // REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_ENCODER_H_ | 107 #endif // REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_ENCODER_H_ |
OLD | NEW |