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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // Protects |video_channel_state_observer_| and |encoders_|. | 102 // Protects |video_channel_state_observer_| and |encoders_|. |
102 base::Lock lock_; | 103 base::Lock lock_; |
103 base::WeakPtr<VideoChannelStateObserver> video_channel_state_observer_; | 104 base::WeakPtr<VideoChannelStateObserver> video_channel_state_observer_; |
104 std::vector<std::unique_ptr<WebrtcDummyVideoEncoder>> encoders_; | 105 std::vector<std::unique_ptr<WebrtcDummyVideoEncoder>> encoders_; |
105 }; | 106 }; |
106 | 107 |
107 } // namespace protocol | 108 } // namespace protocol |
108 } // namespace remoting | 109 } // namespace remoting |
109 | 110 |
110 #endif // REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_ENCODER_H_ | 111 #endif // REMOTING_PROTOCOL_WEBRTC_DUMMY_VIDEO_ENCODER_H_ |
OLD | NEW |