| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_input_renderer_host.h" | 5 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "base/process.h" | 9 #include "base/process.h" |
| 10 #include "base/shared_memory.h" | 10 #include "base/shared_memory.h" |
| 11 #include "content/browser/renderer_host/media/audio_common.h" | 11 #include "content/browser/renderer_host/media/audio_common.h" |
| 12 #include "content/browser/renderer_host/media/audio_input_device_manager.h" | 12 #include "content/browser/renderer_host/media/audio_input_device_manager.h" |
| 13 #include "content/browser/renderer_host/media/audio_input_sync_writer.h" | 13 #include "content/browser/renderer_host/media/audio_input_sync_writer.h" |
| 14 #include "content/browser/renderer_host/media/media_stream_manager.h" | 14 #include "content/browser/renderer_host/media/media_stream_manager.h" |
| 15 #include "content/browser/resource_context.h" | |
| 16 #include "content/common/media/audio_messages.h" | 15 #include "content/common/media/audio_messages.h" |
| 17 #include "ipc/ipc_logging.h" | 16 #include "content/public/browser/resource_context.h" |
| 18 | 17 |
| 19 using content::BrowserMessageFilter; | 18 using content::BrowserMessageFilter; |
| 20 using content::BrowserThread; | 19 using content::BrowserThread; |
| 21 | 20 |
| 22 AudioInputRendererHost::AudioEntry::AudioEntry() | 21 AudioInputRendererHost::AudioEntry::AudioEntry() |
| 23 : stream_id(0), | 22 : stream_id(0), |
| 24 pending_close(false) { | 23 pending_close(false) { |
| 25 } | 24 } |
| 26 | 25 |
| 27 AudioInputRendererHost::AudioEntry::~AudioEntry() {} | 26 AudioInputRendererHost::AudioEntry::~AudioEntry() {} |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 440 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 442 | 441 |
| 443 for (SessionEntryMap::iterator it = session_entries_.begin(); | 442 for (SessionEntryMap::iterator it = session_entries_.begin(); |
| 444 it != session_entries_.end(); ++it) { | 443 it != session_entries_.end(); ++it) { |
| 445 if (stream_id == it->second) { | 444 if (stream_id == it->second) { |
| 446 return it->first; | 445 return it->first; |
| 447 } | 446 } |
| 448 } | 447 } |
| 449 return 0; | 448 return 0; |
| 450 } | 449 } |
| OLD | NEW |