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 #include "content/browser/renderer_host/media/audio_renderer_host.h" | 5 #include "content/browser/renderer_host/media/audio_renderer_host.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/memory/shared_memory.h" |
10 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
11 #include "base/process.h" | 12 #include "base/process.h" |
12 #include "base/shared_memory.h" | |
13 #include "content/browser/browser_main_loop.h" | 13 #include "content/browser/browser_main_loop.h" |
14 #include "content/browser/media/media_internals.h" | 14 #include "content/browser/media/media_internals.h" |
15 #include "content/browser/renderer_host/media/audio_input_device_manager.h" | 15 #include "content/browser/renderer_host/media/audio_input_device_manager.h" |
16 #include "content/browser/renderer_host/media/audio_mirroring_manager.h" | 16 #include "content/browser/renderer_host/media/audio_mirroring_manager.h" |
17 #include "content/browser/renderer_host/media/audio_sync_reader.h" | 17 #include "content/browser/renderer_host/media/audio_sync_reader.h" |
18 #include "content/browser/renderer_host/media/media_stream_manager.h" | 18 #include "content/browser/renderer_host/media/media_stream_manager.h" |
19 #include "content/common/media/audio_messages.h" | 19 #include "content/common/media/audio_messages.h" |
20 #include "content/public/browser/content_browser_client.h" | 20 #include "content/public/browser/content_browser_client.h" |
21 #include "content/public/browser/media_observer.h" | 21 #include "content/public/browser/media_observer.h" |
22 #include "content/public/common/content_switches.h" | 22 #include "content/public/common/content_switches.h" |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 } | 455 } |
456 | 456 |
457 AudioRendererHost::AudioEntry* AudioRendererHost::LookupById(int stream_id) { | 457 AudioRendererHost::AudioEntry* AudioRendererHost::LookupById(int stream_id) { |
458 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 458 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
459 | 459 |
460 AudioEntryMap::const_iterator i = audio_entries_.find(stream_id); | 460 AudioEntryMap::const_iterator i = audio_entries_.find(stream_id); |
461 return i != audio_entries_.end() ? i->second : NULL; | 461 return i != audio_entries_.end() ? i->second : NULL; |
462 } | 462 } |
463 | 463 |
464 } // namespace content | 464 } // namespace content |
OLD | NEW |