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

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

Issue 2392963003: Add Audio support in Chromoting host when using WebRTC. (Closed)
Patch Set: . Created 4 years, 2 months 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
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
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
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_
OLDNEW
« no previous file with comments | « remoting/protocol/webrtc_connection_to_client.cc ('k') | remoting/protocol/webrtc_video_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698