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 // AudioRendererHost serves audio related requests from AudioRenderer which | 5 // AudioRendererHost serves audio related requests from AudioRenderer which |
6 // lives inside the render process and provide access to audio hardware. | 6 // lives inside the render process and provide access to audio hardware. |
7 // | 7 // |
8 // This class is owned by BrowserRenderProcessHost, and instantiated on UI | 8 // This class is owned by BrowserRenderProcessHost, and instantiated on UI |
9 // thread, but all other operations and method calls happen on IO thread, so we | 9 // thread, but all other operations and method calls happen on IO thread, so we |
10 // need to be extra careful about the lifetime of this object. AudioManager is a | 10 // need to be extra careful about the lifetime of this object. AudioManager is a |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_RENDERER_HOST_H_ | 37 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_RENDERER_HOST_H_ |
38 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_RENDERER_HOST_H_ | 38 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_RENDERER_HOST_H_ |
39 #pragma once | 39 #pragma once |
40 | 40 |
41 #include <map> | 41 #include <map> |
42 | 42 |
43 #include "base/gtest_prod_util.h" | 43 #include "base/gtest_prod_util.h" |
44 #include "base/memory/ref_counted.h" | 44 #include "base/memory/ref_counted.h" |
45 #include "base/memory/scoped_ptr.h" | 45 #include "base/memory/scoped_ptr.h" |
46 #include "base/message_loop_helpers.h" | |
47 #include "base/process.h" | 46 #include "base/process.h" |
| 47 #include "base/sequenced_task_runner_helpers.h" |
48 #include "base/shared_memory.h" | 48 #include "base/shared_memory.h" |
49 #include "content/common/content_export.h" | 49 #include "content/common/content_export.h" |
50 #include "content/public/browser/browser_message_filter.h" | 50 #include "content/public/browser/browser_message_filter.h" |
51 #include "content/public/browser/browser_thread.h" | 51 #include "content/public/browser/browser_thread.h" |
52 #include "media/audio/audio_io.h" | 52 #include "media/audio/audio_io.h" |
53 #include "media/audio/audio_output_controller.h" | 53 #include "media/audio/audio_output_controller.h" |
54 #include "media/audio/simple_sources.h" | 54 #include "media/audio/simple_sources.h" |
55 | 55 |
56 namespace content { | 56 namespace content { |
57 class MediaObserver; | 57 class MediaObserver; |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 // A map of stream IDs to audio sources. | 180 // A map of stream IDs to audio sources. |
181 AudioEntryMap audio_entries_; | 181 AudioEntryMap audio_entries_; |
182 | 182 |
183 media::AudioManager* audio_manager_; | 183 media::AudioManager* audio_manager_; |
184 content::MediaObserver* media_observer_; | 184 content::MediaObserver* media_observer_; |
185 | 185 |
186 DISALLOW_COPY_AND_ASSIGN(AudioRendererHost); | 186 DISALLOW_COPY_AND_ASSIGN(AudioRendererHost); |
187 }; | 187 }; |
188 | 188 |
189 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_RENDERER_HOST_H_ | 189 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_RENDERER_HOST_H_ |
OLD | NEW |