| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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_AUDIO_SOURCE_ADAPTER_H_ | 5 #ifndef REMOTING_PROTOCOL_WEBRTC_AUDIO_SOURCE_ADAPTER_H_ |
| 6 #define REMOTING_PROTOCOL_WEBRTC_AUDIO_SOURCE_ADAPTER_H_ | 6 #define REMOTING_PROTOCOL_WEBRTC_AUDIO_SOURCE_ADAPTER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
| 13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
| 14 #include "third_party/webrtc/api/mediastreaminterface.h" | 14 #include "third_party/webrtc/api/mediastreaminterface.h" |
| 15 | 15 |
| 16 namespace webrtc { | 16 namespace webrtc { |
| 17 class AudioTrackSinkInterface; | 17 class AudioTrackSinkInterface; |
| 18 } // namespace webrtc | 18 } // namespace webrtc |
| 19 | 19 |
| 20 namespace remoting { | 20 namespace remoting { |
| 21 | 21 |
| 22 class AudioPacket; | |
| 23 | |
| 24 namespace protocol { | 22 namespace protocol { |
| 25 | 23 |
| 26 class AudioSource; | 24 class AudioSource; |
| 27 | 25 |
| 28 class WebrtcAudioSourceAdapter : public webrtc::AudioSourceInterface { | 26 class WebrtcAudioSourceAdapter : public webrtc::AudioSourceInterface { |
| 29 public: | 27 public: |
| 30 explicit WebrtcAudioSourceAdapter( | 28 explicit WebrtcAudioSourceAdapter( |
| 31 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner); | 29 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner); |
| 32 ~WebrtcAudioSourceAdapter() override; | 30 ~WebrtcAudioSourceAdapter() override; |
| 33 | 31 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 54 // Core running on |audio_task_runner_|. | 52 // Core running on |audio_task_runner_|. |
| 55 std::unique_ptr<Core> core_; | 53 std::unique_ptr<Core> core_; |
| 56 | 54 |
| 57 DISALLOW_COPY_AND_ASSIGN(WebrtcAudioSourceAdapter); | 55 DISALLOW_COPY_AND_ASSIGN(WebrtcAudioSourceAdapter); |
| 58 }; | 56 }; |
| 59 | 57 |
| 60 } // namespace protocol | 58 } // namespace protocol |
| 61 } // namespace remoting | 59 } // namespace remoting |
| 62 | 60 |
| 63 #endif // REMOTING_PROTOCOL_WEBRTC_AUDIO_SOURCE_ADAPTER_H_ | 61 #endif // REMOTING_PROTOCOL_WEBRTC_AUDIO_SOURCE_ADAPTER_H_ |
| OLD | NEW |