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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #include "base/process.h" | 47 #include "base/process.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 class AudioManager; | 56 class AudioManager; |
57 struct AudioParameters; | 57 class AudioParameters; |
58 | 58 |
59 namespace content { | 59 namespace content { |
60 class MediaObserver; | 60 class MediaObserver; |
61 class ResourceContext; | 61 class ResourceContext; |
62 } // namespace content | 62 } // namespace content |
63 | 63 |
64 class CONTENT_EXPORT AudioRendererHost | 64 class CONTENT_EXPORT AudioRendererHost |
65 : public content::BrowserMessageFilter, | 65 : public content::BrowserMessageFilter, |
66 public media::AudioOutputController::EventHandler { | 66 public media::AudioOutputController::EventHandler { |
67 public: | 67 public: |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 // A map of stream IDs to audio sources. | 184 // A map of stream IDs to audio sources. |
185 AudioEntryMap audio_entries_; | 185 AudioEntryMap audio_entries_; |
186 | 186 |
187 content::ResourceContext* resource_context_; | 187 content::ResourceContext* resource_context_; |
188 AudioManager* audio_manager_; | 188 AudioManager* audio_manager_; |
189 | 189 |
190 DISALLOW_COPY_AND_ASSIGN(AudioRendererHost); | 190 DISALLOW_COPY_AND_ASSIGN(AudioRendererHost); |
191 }; | 191 }; |
192 | 192 |
193 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_RENDERER_HOST_H_ | 193 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_RENDERER_HOST_H_ |
OLD | NEW |