OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
7 | 7 |
8 #include "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1080 GpuProcessHost::SendOnIO(GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED, | 1080 GpuProcessHost::SendOnIO(GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED, |
1081 CAUSE_FOR_GPU_LAUNCH_NO_LAUNCH, | 1081 CAUSE_FOR_GPU_LAUNCH_NO_LAUNCH, |
1082 new GpuMsg_UpdateValueState(id_, target, state)); | 1082 new GpuMsg_UpdateValueState(id_, target, state)); |
1083 } else { | 1083 } else { |
1084 // Store the ValueState locally in case a Valuebuffer subscribes to it later | 1084 // Store the ValueState locally in case a Valuebuffer subscribes to it later |
1085 pending_valuebuffer_state_->UpdateState(target, state); | 1085 pending_valuebuffer_state_->UpdateState(target, state); |
1086 } | 1086 } |
1087 } | 1087 } |
1088 | 1088 |
1089 #if defined(ENABLE_BROWSER_CDMS) | 1089 #if defined(ENABLE_BROWSER_CDMS) |
1090 media::BrowserCdm* RenderProcessHostImpl::GetBrowserCdm(int render_frame_id, | 1090 scoped_refptr<media::MediaKeys> RenderProcessHostImpl::GetCdm( |
1091 int cdm_id) const { | 1091 int render_frame_id, |
| 1092 int cdm_id) const { |
1092 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 1093 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
1093 BrowserCdmManager* manager = BrowserCdmManager::FromProcess(GetID()); | 1094 BrowserCdmManager* manager = BrowserCdmManager::FromProcess(GetID()); |
1094 if (!manager) | 1095 if (!manager) |
1095 return nullptr; | 1096 return nullptr; |
1096 return manager->GetCdm(render_frame_id, cdm_id); | 1097 return manager->GetCdm(render_frame_id, cdm_id); |
1097 } | 1098 } |
1098 #endif | 1099 #endif |
1099 | 1100 |
1100 void RenderProcessHostImpl::AddRoute(int32 routing_id, | 1101 void RenderProcessHostImpl::AddRoute(int32 routing_id, |
1101 IPC::Listener* listener) { | 1102 IPC::Listener* listener) { |
(...skipping 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2624 void RenderProcessHostImpl::GetAudioOutputControllers( | 2625 void RenderProcessHostImpl::GetAudioOutputControllers( |
2625 const GetAudioOutputControllersCallback& callback) const { | 2626 const GetAudioOutputControllersCallback& callback) const { |
2626 audio_renderer_host()->GetOutputControllers(callback); | 2627 audio_renderer_host()->GetOutputControllers(callback); |
2627 } | 2628 } |
2628 | 2629 |
2629 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2630 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2630 return bluetooth_dispatcher_host_.get(); | 2631 return bluetooth_dispatcher_host_.get(); |
2631 } | 2632 } |
2632 | 2633 |
2633 } // namespace content | 2634 } // namespace content |
OLD | NEW |