OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // AudioInputRendererHost serves audio related requests from audio capturer | 5 // AudioInputRendererHost serves audio related requests from audio capturer |
6 // which lives inside the render process and provide access to audio hardware. | 6 // which lives inside the render process and provide access to audio hardware. |
7 // | 7 // |
8 // Create stream sequence (AudioInputController = AIC): | 8 // Create stream sequence (AudioInputController = AIC): |
9 // | 9 // |
10 // AudioInputHostMsg_CreateStream -> OnCreateStream -> AIC::CreateLowLatency -> | 10 // AudioInputHostMsg_CreateStream -> OnCreateStream -> AIC::CreateLowLatency -> |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 }; | 100 }; |
101 | 101 |
102 // Called from UI thread from the owner of this object. | 102 // Called from UI thread from the owner of this object. |
103 // |user_input_monitor| is used for typing detection and can be NULL. | 103 // |user_input_monitor| is used for typing detection and can be NULL. |
104 AudioInputRendererHost(media::AudioManager* audio_manager, | 104 AudioInputRendererHost(media::AudioManager* audio_manager, |
105 MediaStreamManager* media_stream_manager, | 105 MediaStreamManager* media_stream_manager, |
106 AudioMirroringManager* audio_mirroring_manager, | 106 AudioMirroringManager* audio_mirroring_manager, |
107 media::UserInputMonitor* user_input_monitor); | 107 media::UserInputMonitor* user_input_monitor); |
108 | 108 |
109 // BrowserMessageFilter implementation. | 109 // BrowserMessageFilter implementation. |
110 virtual void OnChannelClosing() OVERRIDE; | 110 virtual void OnChannelClosing() override; |
111 virtual void OnDestruct() const OVERRIDE; | 111 virtual void OnDestruct() const override; |
112 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 112 virtual bool OnMessageReceived(const IPC::Message& message) override; |
113 | 113 |
114 // AudioInputController::EventHandler implementation. | 114 // AudioInputController::EventHandler implementation. |
115 virtual void OnCreated(media::AudioInputController* controller) OVERRIDE; | 115 virtual void OnCreated(media::AudioInputController* controller) override; |
116 virtual void OnRecording(media::AudioInputController* controller) OVERRIDE; | 116 virtual void OnRecording(media::AudioInputController* controller) override; |
117 virtual void OnError(media::AudioInputController* controller, | 117 virtual void OnError(media::AudioInputController* controller, |
118 media::AudioInputController::ErrorCode error_code) OVERRIDE; | 118 media::AudioInputController::ErrorCode error_code) override; |
119 virtual void OnData(media::AudioInputController* controller, | 119 virtual void OnData(media::AudioInputController* controller, |
120 const media::AudioBus* data) OVERRIDE; | 120 const media::AudioBus* data) override; |
121 virtual void OnLog(media::AudioInputController* controller, | 121 virtual void OnLog(media::AudioInputController* controller, |
122 const std::string& message) OVERRIDE; | 122 const std::string& message) override; |
123 | 123 |
124 private: | 124 private: |
125 // TODO(henrika): extend test suite (compare AudioRenderHost) | 125 // TODO(henrika): extend test suite (compare AudioRenderHost) |
126 friend class BrowserThread; | 126 friend class BrowserThread; |
127 friend class TestAudioInputRendererHost; | 127 friend class TestAudioInputRendererHost; |
128 friend class base::DeleteHelper<AudioInputRendererHost>; | 128 friend class base::DeleteHelper<AudioInputRendererHost>; |
129 | 129 |
130 struct AudioEntry; | 130 struct AudioEntry; |
131 typedef std::map<int, AudioEntry*> AudioEntryMap; | 131 typedef std::map<int, AudioEntry*> AudioEntryMap; |
132 | 132 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 media::UserInputMonitor* user_input_monitor_; | 224 media::UserInputMonitor* user_input_monitor_; |
225 | 225 |
226 scoped_ptr<media::AudioLog> audio_log_; | 226 scoped_ptr<media::AudioLog> audio_log_; |
227 | 227 |
228 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); | 228 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); |
229 }; | 229 }; |
230 | 230 |
231 } // namespace content | 231 } // namespace content |
232 | 232 |
233 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ | 233 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ |
OLD | NEW |