| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_HOST_VIDEO_FRAME_PUMP_H_ | 5 #ifndef REMOTING_PROTOCOL_VIDEO_FRAME_PUMP_H_ |
| 6 #define REMOTING_HOST_VIDEO_FRAME_PUMP_H_ | 6 #define REMOTING_PROTOCOL_VIDEO_FRAME_PUMP_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.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/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
| 12 #include "base/threading/thread_checker.h" | 12 #include "base/threading/thread_checker.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
| 15 #include "remoting/codec/video_encoder.h" | 15 #include "remoting/codec/video_encoder.h" |
| 16 #include "remoting/host/capture_scheduler.h" | |
| 17 #include "remoting/proto/video.pb.h" | 16 #include "remoting/proto/video.pb.h" |
| 17 #include "remoting/protocol/capture_scheduler.h" |
| 18 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" | 18 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" |
| 19 | 19 |
| 20 namespace base { | 20 namespace base { |
| 21 class SingleThreadTaskRunner; | 21 class SingleThreadTaskRunner; |
| 22 } // namespace base | 22 } // namespace base |
| 23 | 23 |
| 24 namespace remoting { | 24 namespace remoting { |
| 25 namespace protocol { |
| 25 | 26 |
| 26 namespace protocol { | |
| 27 class VideoFeedbackStub; | 27 class VideoFeedbackStub; |
| 28 class VideoStub; | 28 class VideoStub; |
| 29 } // namespace protocol | |
| 30 | 29 |
| 31 // Class responsible for scheduling frame captures from a screen capturer., | 30 // Class responsible for scheduling frame captures from a screen capturer., |
| 32 // delivering them to a VideoEncoder to encode, and | 31 // delivering them to a VideoEncoder to encode, and |
| 33 // finally passing the encoded video packets to the specified VideoStub to send | 32 // finally passing the encoded video packets to the specified VideoStub to send |
| 34 // on the network. | 33 // on the network. |
| 35 // | 34 // |
| 36 // THREADING | 35 // THREADING |
| 37 // | 36 // |
| 38 // This class is supplied TaskRunners to use for capture, encode and network | 37 // This class is supplied TaskRunners to use for capture, encode and network |
| 39 // operations. Capture, encode and network transmission tasks are interleaved | 38 // operations. Capture, encode and network transmission tasks are interleaved |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 | 184 |
| 186 ScopedVector<PacketWithTimestamps> pending_packets_; | 185 ScopedVector<PacketWithTimestamps> pending_packets_; |
| 187 | 186 |
| 188 base::ThreadChecker thread_checker_; | 187 base::ThreadChecker thread_checker_; |
| 189 | 188 |
| 190 base::WeakPtrFactory<VideoFramePump> weak_factory_; | 189 base::WeakPtrFactory<VideoFramePump> weak_factory_; |
| 191 | 190 |
| 192 DISALLOW_COPY_AND_ASSIGN(VideoFramePump); | 191 DISALLOW_COPY_AND_ASSIGN(VideoFramePump); |
| 193 }; | 192 }; |
| 194 | 193 |
| 194 } // namespace protocol |
| 195 } // namespace remoting | 195 } // namespace remoting |
| 196 | 196 |
| 197 #endif // REMOTING_HOST_VIDEO_FRAME_PUMP_H_ | 197 #endif // REMOTING_PROTOCOL_VIDEO_FRAME_PUMP_H_ |
| OLD | NEW |