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 18 matching lines...) Expand all Loading... |
29 // | PlayStream > | | 29 // | PlayStream > | |
30 // | < NotifyStreamStateChanged | kAudioStreamPlaying | 30 // | < NotifyStreamStateChanged | kAudioStreamPlaying |
31 // | ... | | 31 // | ... | |
32 // | CloseStream > | | 32 // | CloseStream > | |
33 // v v | 33 // v v |
34 | 34 |
35 // A SyncSocket pair is used to signal buffer readiness between processes. | 35 // A SyncSocket pair is used to signal buffer readiness between processes. |
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 | |
40 | 39 |
41 #include <map> | 40 #include <map> |
42 | 41 |
43 #include "base/gtest_prod_util.h" | 42 #include "base/gtest_prod_util.h" |
44 #include "base/memory/ref_counted.h" | 43 #include "base/memory/ref_counted.h" |
45 #include "base/memory/scoped_ptr.h" | 44 #include "base/memory/scoped_ptr.h" |
46 #include "base/process.h" | 45 #include "base/process.h" |
47 #include "base/sequenced_task_runner_helpers.h" | 46 #include "base/sequenced_task_runner_helpers.h" |
48 #include "base/shared_memory.h" | 47 #include "base/shared_memory.h" |
49 #include "content/common/content_export.h" | 48 #include "content/common/content_export.h" |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 // A map of stream IDs to audio sources. | 179 // A map of stream IDs to audio sources. |
181 AudioEntryMap audio_entries_; | 180 AudioEntryMap audio_entries_; |
182 | 181 |
183 media::AudioManager* audio_manager_; | 182 media::AudioManager* audio_manager_; |
184 content::MediaObserver* media_observer_; | 183 content::MediaObserver* media_observer_; |
185 | 184 |
186 DISALLOW_COPY_AND_ASSIGN(AudioRendererHost); | 185 DISALLOW_COPY_AND_ASSIGN(AudioRendererHost); |
187 }; | 186 }; |
188 | 187 |
189 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_RENDERER_HOST_H_ | 188 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_RENDERER_HOST_H_ |
OLD | NEW |