| 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_PROTOCOL_WEBRTC_VIDEO_STREAM_H_ | 5 #ifndef REMOTING_PROTOCOL_WEBRTC_VIDEO_STREAM_H_ |
| 6 #define REMOTING_PROTOCOL_WEBRTC_VIDEO_STREAM_H_ | 6 #define REMOTING_PROTOCOL_WEBRTC_VIDEO_STREAM_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
| 17 #include "base/threading/thread_checker.h" | 17 #include "base/threading/thread_checker.h" |
| 18 #include "remoting/codec/webrtc_video_encoder.h" | 18 #include "remoting/codec/webrtc_video_encoder.h" |
| 19 #include "remoting/protocol/host_video_stats_dispatcher.h" | 19 #include "remoting/protocol/host_video_stats_dispatcher.h" |
| 20 #include "remoting/protocol/video_stream.h" | 20 #include "remoting/protocol/video_stream.h" |
| 21 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" | 21 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" |
| 22 | 22 |
| 23 namespace webrtc { | 23 namespace webrtc { |
| 24 class MediaStreamInterface; | 24 class MediaStreamInterface; |
| 25 class PeerConnectionInterface; | 25 class PeerConnectionInterface; |
| 26 class PeerConnectionFactoryInterface; | |
| 27 class VideoTrackInterface; | |
| 28 } // namespace webrtc | 26 } // namespace webrtc |
| 29 | 27 |
| 30 namespace remoting { | 28 namespace remoting { |
| 31 namespace protocol { | 29 namespace protocol { |
| 32 | 30 |
| 33 class HostVideoStatsDispatcher; | 31 class HostVideoStatsDispatcher; |
| 34 class WebrtcFrameScheduler; | 32 class WebrtcFrameScheduler; |
| 35 class WebrtcTransport; | 33 class WebrtcTransport; |
| 36 class WebrtcVideoCapturerAdapter; | |
| 37 | 34 |
| 38 class WebrtcVideoStream : public VideoStream, | 35 class WebrtcVideoStream : public VideoStream, |
| 39 public webrtc::DesktopCapturer::Callback, | 36 public webrtc::DesktopCapturer::Callback, |
| 40 public HostVideoStatsDispatcher::EventHandler { | 37 public HostVideoStatsDispatcher::EventHandler { |
| 41 public: | 38 public: |
| 42 WebrtcVideoStream(); | 39 WebrtcVideoStream(); |
| 43 ~WebrtcVideoStream() override; | 40 ~WebrtcVideoStream() override; |
| 44 | 41 |
| 45 void Start(std::unique_ptr<webrtc::DesktopCapturer> desktop_capturer, | 42 void Start(std::unique_ptr<webrtc::DesktopCapturer> desktop_capturer, |
| 46 WebrtcTransport* webrtc_transport, | 43 WebrtcTransport* webrtc_transport, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 103 |
| 107 base::WeakPtrFactory<WebrtcVideoStream> weak_factory_; | 104 base::WeakPtrFactory<WebrtcVideoStream> weak_factory_; |
| 108 | 105 |
| 109 DISALLOW_COPY_AND_ASSIGN(WebrtcVideoStream); | 106 DISALLOW_COPY_AND_ASSIGN(WebrtcVideoStream); |
| 110 }; | 107 }; |
| 111 | 108 |
| 112 } // namespace protocol | 109 } // namespace protocol |
| 113 } // namespace remoting | 110 } // namespace remoting |
| 114 | 111 |
| 115 #endif // REMOTING_PROTOCOL_WEBRTC_VIDEO_STREAM_H_ | 112 #endif // REMOTING_PROTOCOL_WEBRTC_VIDEO_STREAM_H_ |
| OLD | NEW |