| 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> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 class WebrtcTransport; | 34 class WebrtcTransport; |
| 35 class WebrtcVideoCapturerAdapter; | 35 class WebrtcVideoCapturerAdapter; |
| 36 | 36 |
| 37 class WebrtcVideoStream : public VideoStream, | 37 class WebrtcVideoStream : public VideoStream, |
| 38 public webrtc::DesktopCapturer::Callback, | 38 public webrtc::DesktopCapturer::Callback, |
| 39 public HostVideoStatsDispatcher::EventHandler { | 39 public HostVideoStatsDispatcher::EventHandler { |
| 40 public: | 40 public: |
| 41 WebrtcVideoStream(); | 41 WebrtcVideoStream(); |
| 42 ~WebrtcVideoStream() override; | 42 ~WebrtcVideoStream() override; |
| 43 | 43 |
| 44 bool Start(std::unique_ptr<webrtc::DesktopCapturer> desktop_capturer, | 44 void Start(std::unique_ptr<webrtc::DesktopCapturer> desktop_capturer, |
| 45 WebrtcTransport* webrtc_transport, | 45 WebrtcTransport* webrtc_transport, |
| 46 scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner); | 46 scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner); |
| 47 | 47 |
| 48 // VideoStream interface. | 48 // VideoStream interface. |
| 49 void Pause(bool pause) override; | 49 void Pause(bool pause) override; |
| 50 void OnInputEventReceived(int64_t event_timestamp) override; | 50 void OnInputEventReceived(int64_t event_timestamp) override; |
| 51 void SetLosslessEncode(bool want_lossless) override; | 51 void SetLosslessEncode(bool want_lossless) override; |
| 52 void SetLosslessColor(bool want_lossless) override; | 52 void SetLosslessColor(bool want_lossless) override; |
| 53 void SetObserver(Observer* observer) override; | 53 void SetObserver(Observer* observer) override; |
| 54 | 54 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 base::WeakPtrFactory<WebrtcVideoStream> weak_factory_; | 111 base::WeakPtrFactory<WebrtcVideoStream> weak_factory_; |
| 112 | 112 |
| 113 DISALLOW_COPY_AND_ASSIGN(WebrtcVideoStream); | 113 DISALLOW_COPY_AND_ASSIGN(WebrtcVideoStream); |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 } // namespace protocol | 116 } // namespace protocol |
| 117 } // namespace remoting | 117 } // namespace remoting |
| 118 | 118 |
| 119 #endif // REMOTING_PROTOCOL_WEBRTC_VIDEO_STREAM_H_ | 119 #endif // REMOTING_PROTOCOL_WEBRTC_VIDEO_STREAM_H_ |
| OLD | NEW |