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