OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 (except Destroy()) happens | 9 // thread, but all other operations and method calls (except Destroy()) happens |
10 // in IO thread, so we need to be extra careful about the lifetime of this | 10 // in IO thread, so we need to be extra careful about the lifetime of this |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // pair is used to signal buffer readiness without having to route messages | 54 // pair is used to signal buffer readiness without having to route messages |
55 // using the IO thread. | 55 // using the IO thread. |
56 | 56 |
57 #ifndef CHROME_BROWSER_RENDERER_HOST_AUDIO_RENDERER_HOST_H_ | 57 #ifndef CHROME_BROWSER_RENDERER_HOST_AUDIO_RENDERER_HOST_H_ |
58 #define CHROME_BROWSER_RENDERER_HOST_AUDIO_RENDERER_HOST_H_ | 58 #define CHROME_BROWSER_RENDERER_HOST_AUDIO_RENDERER_HOST_H_ |
59 #pragma once | 59 #pragma once |
60 | 60 |
61 #include <map> | 61 #include <map> |
62 | 62 |
63 #include "base/gtest_prod_util.h" | 63 #include "base/gtest_prod_util.h" |
64 #include "base/lock.h" | |
65 #include "base/process.h" | 64 #include "base/process.h" |
66 #include "base/ref_counted.h" | 65 #include "base/ref_counted.h" |
67 #include "base/scoped_ptr.h" | 66 #include "base/scoped_ptr.h" |
68 #include "base/shared_memory.h" | 67 #include "base/shared_memory.h" |
69 #include "chrome/browser/browser_thread.h" | 68 #include "chrome/browser/browser_thread.h" |
70 #include "ipc/ipc_message.h" | 69 #include "ipc/ipc_message.h" |
71 #include "media/audio/audio_io.h" | 70 #include "media/audio/audio_io.h" |
72 #include "media/audio/audio_output_controller.h" | 71 #include "media/audio/audio_output_controller.h" |
73 #include "media/audio/simple_sources.h" | 72 #include "media/audio/simple_sources.h" |
74 | 73 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 base::ProcessHandle process_handle_; | 243 base::ProcessHandle process_handle_; |
245 IPC::Message::Sender* ipc_sender_; | 244 IPC::Message::Sender* ipc_sender_; |
246 | 245 |
247 // A map of id to audio sources. | 246 // A map of id to audio sources. |
248 AudioEntryMap audio_entries_; | 247 AudioEntryMap audio_entries_; |
249 | 248 |
250 DISALLOW_COPY_AND_ASSIGN(AudioRendererHost); | 249 DISALLOW_COPY_AND_ASSIGN(AudioRendererHost); |
251 }; | 250 }; |
252 | 251 |
253 #endif // CHROME_BROWSER_RENDERER_HOST_AUDIO_RENDERER_HOST_H_ | 252 #endif // CHROME_BROWSER_RENDERER_HOST_AUDIO_RENDERER_HOST_H_ |
OLD | NEW |