OLD | NEW |
(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_ |
OLD | NEW |