OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_NOT_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_NOT_IMPL_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_NOT_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_NOT_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 // to maintain. | 21 // to maintain. |
22 class CONTENT_EXPORT WebRtcAudioDeviceNotImpl | 22 class CONTENT_EXPORT WebRtcAudioDeviceNotImpl |
23 : NON_EXPORTED_BASE(public webrtc::AudioDeviceModule) { | 23 : NON_EXPORTED_BASE(public webrtc::AudioDeviceModule) { |
24 public: | 24 public: |
25 WebRtcAudioDeviceNotImpl(); | 25 WebRtcAudioDeviceNotImpl(); |
26 | 26 |
27 // webrtc::Module implementation. | 27 // webrtc::Module implementation. |
28 // TODO(henrika): it is possible to add functionality in these methods. | 28 // TODO(henrika): it is possible to add functionality in these methods. |
29 // Only adding very basic support for now without triggering any callback | 29 // Only adding very basic support for now without triggering any callback |
30 // in the webrtc::AudioDeviceObserver interface. | 30 // in the webrtc::AudioDeviceObserver interface. |
| 31 int32_t ChangeUniqueId(const int32_t id) override; |
31 int64_t TimeUntilNextProcess() override; | 32 int64_t TimeUntilNextProcess() override; |
32 int32_t Process() override; | 33 int32_t Process() override; |
33 | 34 |
34 // Methods in webrtc::AudioDeviceModule which are not yet implemented. | 35 // Methods in webrtc::AudioDeviceModule which are not yet implemented. |
35 // The idea is that we can move methods from this class to the real | 36 // The idea is that we can move methods from this class to the real |
36 // implementation in WebRtcAudioDeviceImpl when needed. | 37 // implementation in WebRtcAudioDeviceImpl when needed. |
37 | 38 |
38 int32_t RegisterEventObserver( | 39 int32_t RegisterEventObserver( |
39 webrtc::AudioDeviceObserver* event_callback) override; | 40 webrtc::AudioDeviceObserver* event_callback) override; |
40 int32_t ActiveAudioLayer(AudioLayer* audio_layer) const override; | 41 int32_t ActiveAudioLayer(AudioLayer* audio_layer) const override; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 ~WebRtcAudioDeviceNotImpl() override{}; | 108 ~WebRtcAudioDeviceNotImpl() override{}; |
108 | 109 |
109 private: | 110 private: |
110 base::TimeTicks last_process_time_; | 111 base::TimeTicks last_process_time_; |
111 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceNotImpl); | 112 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceNotImpl); |
112 }; | 113 }; |
113 | 114 |
114 } // namespace content | 115 } // namespace content |
115 | 116 |
116 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_NOT_IMPL_H_ | 117 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_NOT_IMPL_H_ |
OLD | NEW |