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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ | 47 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ |
48 #pragma once | 48 #pragma once |
49 | 49 |
50 #include <map> | 50 #include <map> |
51 #include <string> | 51 #include <string> |
52 | 52 |
53 #include "base/compiler_specific.h" | 53 #include "base/compiler_specific.h" |
54 #include "base/gtest_prod_util.h" | 54 #include "base/gtest_prod_util.h" |
55 #include "base/memory/ref_counted.h" | 55 #include "base/memory/ref_counted.h" |
56 #include "base/memory/scoped_ptr.h" | 56 #include "base/memory/scoped_ptr.h" |
57 #include "base/message_loop_helpers.h" | |
58 #include "base/process.h" | 57 #include "base/process.h" |
| 58 #include "base/sequenced_task_runner_helpers.h" |
59 #include "base/shared_memory.h" | 59 #include "base/shared_memory.h" |
60 #include "content/browser/renderer_host/media/audio_input_device_manager_event_h
andler.h" | 60 #include "content/browser/renderer_host/media/audio_input_device_manager_event_h
andler.h" |
61 #include "content/public/browser/browser_message_filter.h" | 61 #include "content/public/browser/browser_message_filter.h" |
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; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 AudioEntryMap audio_entries_; | 206 AudioEntryMap audio_entries_; |
207 | 207 |
208 // A map of session IDs to audio session sources. | 208 // A map of session IDs to audio session sources. |
209 typedef std::map<int, int> SessionEntryMap; | 209 typedef std::map<int, int> SessionEntryMap; |
210 SessionEntryMap session_entries_; | 210 SessionEntryMap session_entries_; |
211 | 211 |
212 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); | 212 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); |
213 }; | 213 }; |
214 | 214 |
215 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ | 215 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ |
OLD | NEW |