OLD | NEW |
1 // Copyright (c) 2011 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 -> |
11 // <- AudioInputMsg_NotifyStreamCreated <- DoCompleteCreation <- OnCreated <- | 11 // <- AudioInputMsg_NotifyStreamCreated <- DoCompleteCreation <- OnCreated <- |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 #include "content/public/browser/browser_thread.h" | 62 #include "content/public/browser/browser_thread.h" |
63 #include "media/audio/audio_input_controller.h" | 63 #include "media/audio/audio_input_controller.h" |
64 #include "media/audio/audio_io.h" | 64 #include "media/audio/audio_io.h" |
65 #include "media/audio/simple_sources.h" | 65 #include "media/audio/simple_sources.h" |
66 | 66 |
67 namespace content { | 67 namespace content { |
68 class ResourceContext; | 68 class ResourceContext; |
69 } | 69 } |
70 | 70 |
71 class AudioManager; | 71 class AudioManager; |
72 struct AudioParameters; | 72 class AudioParameters; |
73 | 73 |
74 class CONTENT_EXPORT AudioInputRendererHost | 74 class CONTENT_EXPORT AudioInputRendererHost |
75 : public content::BrowserMessageFilter, | 75 : public content::BrowserMessageFilter, |
76 public media::AudioInputController::EventHandler, | 76 public media::AudioInputController::EventHandler, |
77 public media_stream::AudioInputDeviceManagerEventHandler { | 77 public media_stream::AudioInputDeviceManagerEventHandler { |
78 public: | 78 public: |
79 struct AudioEntry { | 79 struct AudioEntry { |
80 AudioEntry(); | 80 AudioEntry(); |
81 ~AudioEntry(); | 81 ~AudioEntry(); |
82 | 82 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 AudioEntryMap audio_entries_; | 209 AudioEntryMap audio_entries_; |
210 | 210 |
211 // A map of session IDs to audio session sources. | 211 // A map of session IDs to audio session sources. |
212 typedef std::map<int, int> SessionEntryMap; | 212 typedef std::map<int, int> SessionEntryMap; |
213 SessionEntryMap session_entries_; | 213 SessionEntryMap session_entries_; |
214 | 214 |
215 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); | 215 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); |
216 }; | 216 }; |
217 | 217 |
218 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ | 218 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ |
OLD | NEW |