| 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 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1050 GpuProcessHost::SendOnIO(GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED, | 1050 GpuProcessHost::SendOnIO(GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED, |
| 1051 CAUSE_FOR_GPU_LAUNCH_NO_LAUNCH, | 1051 CAUSE_FOR_GPU_LAUNCH_NO_LAUNCH, |
| 1052 new GpuMsg_UpdateValueState(id_, target, state)); | 1052 new GpuMsg_UpdateValueState(id_, target, state)); |
| 1053 } else { | 1053 } else { |
| 1054 // Store the ValueState locally in case a Valuebuffer subscribes to it later | 1054 // Store the ValueState locally in case a Valuebuffer subscribes to it later |
| 1055 pending_valuebuffer_state_->UpdateState(target, state); | 1055 pending_valuebuffer_state_->UpdateState(target, state); |
| 1056 } | 1056 } |
| 1057 } | 1057 } |
| 1058 | 1058 |
| 1059 #if defined(ENABLE_BROWSER_CDMS) | 1059 #if defined(ENABLE_BROWSER_CDMS) |
| 1060 media::BrowserCdm* RenderProcessHostImpl::GetBrowserCdm(int render_frame_id, | 1060 scoped_refptr<media::MediaKeys> RenderProcessHostImpl::GetCdm( |
| 1061 int cdm_id) const { | 1061 int render_frame_id, |
| 1062 int cdm_id) const { |
| 1062 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 1063 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 1063 BrowserCdmManager* manager = BrowserCdmManager::FromProcess(GetID()); | 1064 BrowserCdmManager* manager = BrowserCdmManager::FromProcess(GetID()); |
| 1064 if (!manager) | 1065 if (!manager) |
| 1065 return nullptr; | 1066 return nullptr; |
| 1066 return manager->GetCdm(render_frame_id, cdm_id); | 1067 return manager->GetCdm(render_frame_id, cdm_id); |
| 1067 } | 1068 } |
| 1068 #endif | 1069 #endif |
| 1069 | 1070 |
| 1070 void RenderProcessHostImpl::AddRoute(int32 routing_id, | 1071 void RenderProcessHostImpl::AddRoute(int32 routing_id, |
| 1071 IPC::Listener* listener) { | 1072 IPC::Listener* listener) { |
| (...skipping 1515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2587 void RenderProcessHostImpl::GetAudioOutputControllers( | 2588 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2588 const GetAudioOutputControllersCallback& callback) const { | 2589 const GetAudioOutputControllersCallback& callback) const { |
| 2589 audio_renderer_host()->GetOutputControllers(callback); | 2590 audio_renderer_host()->GetOutputControllers(callback); |
| 2590 } | 2591 } |
| 2591 | 2592 |
| 2592 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2593 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
| 2593 return bluetooth_dispatcher_host_.get(); | 2594 return bluetooth_dispatcher_host_.get(); |
| 2594 } | 2595 } |
| 2595 | 2596 |
| 2596 } // namespace content | 2597 } // namespace content |
| OLD | NEW |