| 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_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/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "base/process/process.h" | 10 #include "base/process/process.h" |
| 11 #include "content/browser/media/capture/web_contents_audio_input_stream.h" |
| 12 #include "content/browser/media/capture/web_contents_capture_util.h" |
| 11 #include "content/browser/media/media_internals.h" | 13 #include "content/browser/media/media_internals.h" |
| 12 #include "content/browser/renderer_host/media/audio_input_device_manager.h" | 14 #include "content/browser/renderer_host/media/audio_input_device_manager.h" |
| 13 #include "content/browser/renderer_host/media/audio_input_sync_writer.h" | 15 #include "content/browser/renderer_host/media/audio_input_sync_writer.h" |
| 14 #include "content/browser/renderer_host/media/media_stream_manager.h" | 16 #include "content/browser/renderer_host/media/media_stream_manager.h" |
| 15 #include "content/browser/renderer_host/media/web_contents_audio_input_stream.h" | |
| 16 #include "content/browser/renderer_host/media/web_contents_capture_util.h" | |
| 17 #include "media/audio/audio_manager_base.h" | 17 #include "media/audio/audio_manager_base.h" |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 | 20 |
| 21 struct AudioInputRendererHost::AudioEntry { | 21 struct AudioInputRendererHost::AudioEntry { |
| 22 AudioEntry(); | 22 AudioEntry(); |
| 23 ~AudioEntry(); | 23 ~AudioEntry(); |
| 24 | 24 |
| 25 // The AudioInputController that manages the audio input stream. | 25 // The AudioInputController that manages the audio input stream. |
| 26 scoped_refptr<media::AudioInputController> controller; | 26 scoped_refptr<media::AudioInputController> controller; |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 // TODO(hclam): Implement a faster look up method. | 416 // TODO(hclam): Implement a faster look up method. |
| 417 for (AudioEntryMap::iterator i = audio_entries_.begin(); | 417 for (AudioEntryMap::iterator i = audio_entries_.begin(); |
| 418 i != audio_entries_.end(); ++i) { | 418 i != audio_entries_.end(); ++i) { |
| 419 if (controller == i->second->controller.get()) | 419 if (controller == i->second->controller.get()) |
| 420 return i->second; | 420 return i->second; |
| 421 } | 421 } |
| 422 return NULL; | 422 return NULL; |
| 423 } | 423 } |
| 424 | 424 |
| 425 } // namespace content | 425 } // namespace content |
| OLD | NEW |