Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: remoting/protocol/webrtc_video_stream.h

Issue 1510343002: Add WebrtcConnectionToClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webrtc_thread
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « remoting/protocol/webrtc_video_capturer_adapter.cc ('k') | remoting/protocol/webrtc_video_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698