| 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/renderer/pepper/pepper_platform_audio_input.h" | 5 #include "content/renderer/pepper/pepper_platform_audio_input.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| 11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "content/child/child_process.h" | 13 #include "content/child/child_process.h" |
| 14 #include "content/renderer/media/audio_input_message_filter.h" | 14 #include "content/renderer/media/audio_input_message_filter.h" |
| 15 #include "content/renderer/pepper/pepper_audio_input_host.h" | 15 #include "content/renderer/pepper/pepper_audio_input_host.h" |
| 16 #include "content/renderer/pepper/pepper_media_device_manager.h" | 16 #include "content/renderer/pepper/pepper_media_device_manager.h" |
| 17 #include "content/renderer/render_frame_impl.h" | 17 #include "content/renderer/render_frame_impl.h" |
| 18 #include "content/renderer/render_thread_impl.h" | 18 #include "content/renderer/render_thread_impl.h" |
| 19 #include "content/renderer/render_view_impl.h" | 19 #include "content/renderer/render_view_impl.h" |
| 20 #include "media/audio/audio_device_description.h" | 20 #include "media/audio/audio_device_description.h" |
| 21 #include "ppapi/shared_impl/ppb_audio_config_shared.h" | 21 #include "ppapi/shared_impl/ppb_audio_config_shared.h" |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 PepperMediaDeviceManager* PepperPlatformAudioInput::GetMediaDeviceManager() { | 281 PepperMediaDeviceManager* PepperPlatformAudioInput::GetMediaDeviceManager() { |
| 282 DCHECK(main_task_runner_->BelongsToCurrentThread()); | 282 DCHECK(main_task_runner_->BelongsToCurrentThread()); |
| 283 | 283 |
| 284 RenderFrameImpl* const render_frame = | 284 RenderFrameImpl* const render_frame = |
| 285 RenderFrameImpl::FromRoutingID(render_frame_id_); | 285 RenderFrameImpl::FromRoutingID(render_frame_id_); |
| 286 return render_frame ? | 286 return render_frame ? |
| 287 PepperMediaDeviceManager::GetForRenderFrame(render_frame).get() : NULL; | 287 PepperMediaDeviceManager::GetForRenderFrame(render_frame).get() : NULL; |
| 288 } | 288 } |
| 289 | 289 |
| 290 } // namespace content | 290 } // namespace content |
| OLD | NEW |