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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 virtual void OnCreated(media::AudioInputController* controller) OVERRIDE; | 72 virtual void OnCreated(media::AudioInputController* controller) OVERRIDE; |
73 virtual void OnRecording(media::AudioInputController* controller) OVERRIDE; | 73 virtual void OnRecording(media::AudioInputController* controller) OVERRIDE; |
74 virtual void OnError(media::AudioInputController* controller) OVERRIDE; | 74 virtual void OnError(media::AudioInputController* controller) OVERRIDE; |
75 virtual void OnData(media::AudioInputController* controller, | 75 virtual void OnData(media::AudioInputController* controller, |
76 const uint8* data, | 76 const uint8* data, |
77 uint32 size) OVERRIDE; | 77 uint32 size) OVERRIDE; |
78 | 78 |
79 private: | 79 private: |
80 // TODO(henrika): extend test suite (compare AudioRenderHost) | 80 // TODO(henrika): extend test suite (compare AudioRenderHost) |
81 friend class BrowserThread; | 81 friend class BrowserThread; |
| 82 friend class TestAudioInputRendererHost; |
82 friend class base::DeleteHelper<AudioInputRendererHost>; | 83 friend class base::DeleteHelper<AudioInputRendererHost>; |
83 | 84 |
84 struct AudioEntry; | 85 struct AudioEntry; |
85 typedef std::map<int, AudioEntry*> AudioEntryMap; | 86 typedef std::map<int, AudioEntry*> AudioEntryMap; |
86 | 87 |
87 virtual ~AudioInputRendererHost(); | 88 virtual ~AudioInputRendererHost(); |
88 | 89 |
89 // Methods called on IO thread ---------------------------------------------- | 90 // Methods called on IO thread ---------------------------------------------- |
90 | 91 |
91 // Audio related IPC message handlers. | 92 // Audio related IPC message handlers. |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 159 |
159 // Raw pointer of the UserInputMonitor. | 160 // Raw pointer of the UserInputMonitor. |
160 media::UserInputMonitor* user_input_monitor_; | 161 media::UserInputMonitor* user_input_monitor_; |
161 | 162 |
162 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); | 163 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); |
163 }; | 164 }; |
164 | 165 |
165 } // namespace content | 166 } // namespace content |
166 | 167 |
167 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ | 168 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ |
OLD | NEW |