| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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" | 64 #include "base/lock.h" |
| 65 #include "base/process.h" | 65 #include "base/process.h" |
| 66 #include "base/ref_counted.h" | 66 #include "base/ref_counted.h" |
| 67 #include "base/scoped_ptr.h" | 67 #include "base/scoped_ptr.h" |
| 68 #include "base/shared_memory.h" | 68 #include "base/shared_memory.h" |
| 69 #include "base/waitable_event.h" | |
| 70 #include "chrome/browser/chrome_thread.h" | 69 #include "chrome/browser/chrome_thread.h" |
| 71 #include "ipc/ipc_message.h" | 70 #include "ipc/ipc_message.h" |
| 72 #include "media/audio/audio_io.h" | 71 #include "media/audio/audio_io.h" |
| 73 #include "media/audio/audio_output_controller.h" | 72 #include "media/audio/audio_output_controller.h" |
| 74 #include "media/audio/simple_sources.h" | 73 #include "media/audio/simple_sources.h" |
| 75 | 74 |
| 76 class AudioManager; | 75 class AudioManager; |
| 77 struct ViewHostMsg_Audio_CreateStream_Params; | 76 struct ViewHostMsg_Audio_CreateStream_Params; |
| 78 | 77 |
| 79 class AudioRendererHost : public base::RefCountedThreadSafe< | 78 class AudioRendererHost : public base::RefCountedThreadSafe< |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 base::ProcessHandle process_handle_; | 239 base::ProcessHandle process_handle_; |
| 241 IPC::Message::Sender* ipc_sender_; | 240 IPC::Message::Sender* ipc_sender_; |
| 242 | 241 |
| 243 // A map of id to audio sources. | 242 // A map of id to audio sources. |
| 244 AudioEntryMap audio_entries_; | 243 AudioEntryMap audio_entries_; |
| 245 | 244 |
| 246 DISALLOW_COPY_AND_ASSIGN(AudioRendererHost); | 245 DISALLOW_COPY_AND_ASSIGN(AudioRendererHost); |
| 247 }; | 246 }; |
| 248 | 247 |
| 249 #endif // CHROME_BROWSER_RENDERER_HOST_AUDIO_RENDERER_HOST_H_ | 248 #endif // CHROME_BROWSER_RENDERER_HOST_AUDIO_RENDERER_HOST_H_ |
| OLD | NEW |