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/memory/shared_memory.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "base/process.h" | 12 #include "base/process/process.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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 } | 460 } |
461 | 461 |
462 AudioRendererHost::AudioEntry* AudioRendererHost::LookupById(int stream_id) { | 462 AudioRendererHost::AudioEntry* AudioRendererHost::LookupById(int stream_id) { |
463 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 463 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
464 | 464 |
465 AudioEntryMap::const_iterator i = audio_entries_.find(stream_id); | 465 AudioEntryMap::const_iterator i = audio_entries_.find(stream_id); |
466 return i != audio_entries_.end() ? i->second : NULL; | 466 return i != audio_entries_.end() ? i->second : NULL; |
467 } | 467 } |
468 | 468 |
469 } // namespace content | 469 } // namespace content |
OLD | NEW |