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; | |
32 int64_t TimeUntilNextProcess() override; | 31 int64_t TimeUntilNextProcess() override; |
33 int32_t Process() override; | 32 int32_t Process() override; |
34 | 33 |
35 // Methods in webrtc::AudioDeviceModule which are not yet implemented. | 34 // Methods in webrtc::AudioDeviceModule which are not yet implemented. |
36 // The idea is that we can move methods from this class to the real | 35 // The idea is that we can move methods from this class to the real |
37 // implementation in WebRtcAudioDeviceImpl when needed. | 36 // implementation in WebRtcAudioDeviceImpl when needed. |
38 | 37 |
39 int32_t RegisterEventObserver( | 38 int32_t RegisterEventObserver( |
40 webrtc::AudioDeviceObserver* event_callback) override; | 39 webrtc::AudioDeviceObserver* event_callback) override; |
41 int32_t ActiveAudioLayer(AudioLayer* audio_layer) const override; | 40 int32_t ActiveAudioLayer(AudioLayer* audio_layer) const override; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 ~WebRtcAudioDeviceNotImpl() override{}; | 107 ~WebRtcAudioDeviceNotImpl() override{}; |
109 | 108 |
110 private: | 109 private: |
111 base::TimeTicks last_process_time_; | 110 base::TimeTicks last_process_time_; |
112 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceNotImpl); | 111 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceNotImpl); |
113 }; | 112 }; |
114 | 113 |
115 } // namespace content | 114 } // namespace content |
116 | 115 |
117 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_NOT_IMPL_H_ | 116 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_NOT_IMPL_H_ |
OLD | NEW |