OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef REMOTING_PROTOCOL_WEBRTC_VIDEO_STREAM_H_ |
| 6 #define REMOTING_PROTOCOL_WEBRTC_VIDEO_STREAM_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "remoting/protocol/video_stream.h" |
| 10 #include "third_party/webrtc/base/scoped_ref_ptr.h" |
| 11 |
| 12 namespace webrtc { |
| 13 class MediaStreamInterface; |
| 14 class PeerConnectionInterface; |
| 15 } // namespace webrtc |
| 16 |
| 17 namespace remoting { |
| 18 namespace protocol { |
| 19 |
| 20 class WebrtcVideoStream : public VideoStream { |
| 21 public: |
| 22 WebrtcVideoStream( |
| 23 rtc::scoped_refptr<webrtc::PeerConnectionInterface> connection, |
| 24 rtc::scoped_refptr<webrtc::MediaStreamInterface> stream); |
| 25 ~WebrtcVideoStream() override; |
| 26 |
| 27 // VideoStream interface. |
| 28 void Pause(bool pause) override; |
| 29 void OnInputEventReceived(int64_t event_timestamp) override; |
| 30 void SetLosslessEncode(bool want_lossless) override; |
| 31 void SetLosslessColor(bool want_lossless) override; |
| 32 void SetSizeCallback(const SizeCallback& size_callback) override; |
| 33 |
| 34 private: |
| 35 rtc::scoped_refptr<webrtc::PeerConnectionInterface> connection_; |
| 36 rtc::scoped_refptr<webrtc::MediaStreamInterface> stream_; |
| 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(WebrtcVideoStream); |
| 39 }; |
| 40 |
| 41 } // namespace protocol |
| 42 } // namespace remoting |
| 43 |
| 44 #endif // REMOTING_PROTOCOL_WEBRTC_VIDEO_STREAM_H_ |
OLD | NEW |