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

Side by Side Diff: remoting/protocol/webrtc_audio_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
(Empty)
1 // Copyright 2016 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_AUDIO_STREAM_H_
6 #define REMOTING_PROTOCOL_WEBRTC_AUDIO_STREAM_H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h"
12 #include "remoting/protocol/audio_stream.h"
13
14 namespace base {
15 class SingleThreadTaskRunner;
16 } // namespace webrtc
17
18 namespace webrtc {
19 class MediaStreamInterface;
20 class PeerConnectionInterface;
21 } // namespace webrtc
22
23 namespace remoting {
24 namespace protocol {
25
26 class AudioSource;
27 class WebrtcAudioSourceAdapter;
28 class WebrtcTransport;
29
30 class WebrtcAudioStream : public AudioStream {
31 public:
32 WebrtcAudioStream();
33 ~WebrtcAudioStream() override;
34
35 void Start(scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner,
36 std::unique_ptr<AudioSource> audio_source,
37 WebrtcTransport* webrtc_transport);
38
39 // AudioStream interface.
40 void Pause(bool pause) override;
41
42 private:
43 scoped_refptr<WebrtcAudioSourceAdapter> source_adapter_;
44
45 scoped_refptr<webrtc::PeerConnectionInterface> peer_connection_;
46 scoped_refptr<webrtc::MediaStreamInterface> stream_;
47
48 DISALLOW_COPY_AND_ASSIGN(WebrtcAudioStream);
49 };
50
51 } // namespace protocol
52 } // namespace remoting
53
54 #endif // REMOTING_PROTOCOL_WEBRTC_AUDIO_STREAM_H_
OLDNEW
« no previous file with comments | « remoting/protocol/webrtc_audio_source_adapter_unittest.cc ('k') | remoting/protocol/webrtc_audio_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698