Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 894173002: Adds hook for content embedders to get media::BrowserCdm*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 // 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 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 GpuProcessHost::SendOnIO( 970 GpuProcessHost::SendOnIO(
971 GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED, 971 GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED,
972 CAUSE_FOR_GPU_LAUNCH_NO_LAUNCH, 972 CAUSE_FOR_GPU_LAUNCH_NO_LAUNCH,
973 new GpuMsg_UpdateValueState(id_, target, state)); 973 new GpuMsg_UpdateValueState(id_, target, state));
974 } else { 974 } else {
975 // Store the ValueState locally in case a Valuebuffer subscribes to it later 975 // Store the ValueState locally in case a Valuebuffer subscribes to it later
976 pending_valuebuffer_state_->UpdateState(target, state); 976 pending_valuebuffer_state_->UpdateState(target, state);
977 } 977 }
978 } 978 }
979 979
980 #if defined(ENABLE_BROWSER_CDMS)
981 media::BrowserCdm* RenderProcessHostImpl::GetBrowserCdm(int render_frame_id,
982 int cdm_id) const {
983 DCHECK_CURRENTLY_ON(BrowserThread::UI);
984 return browser_cdm_manager_->GetCdm(render_frame_id, cdm_id);
985 }
986 #endif
987
980 void RenderProcessHostImpl::AddRoute( 988 void RenderProcessHostImpl::AddRoute(
981 int32 routing_id, 989 int32 routing_id,
982 IPC::Listener* listener) { 990 IPC::Listener* listener) {
983 CHECK(!listeners_.Lookup(routing_id)) 991 CHECK(!listeners_.Lookup(routing_id))
984 << "Found Routing ID Conflict: " << routing_id; 992 << "Found Routing ID Conflict: " << routing_id;
985 listeners_.AddWithID(listener, routing_id); 993 listeners_.AddWithID(listener, routing_id);
986 } 994 }
987 995
988 void RenderProcessHostImpl::RemoveRoute(int32 routing_id) { 996 void RenderProcessHostImpl::RemoveRoute(int32 routing_id) {
989 DCHECK(listeners_.Lookup(routing_id) != NULL); 997 DCHECK(listeners_.Lookup(routing_id) != NULL);
(...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after
2395 if (worker_ref_count_ == 0) 2403 if (worker_ref_count_ == 0)
2396 Cleanup(); 2404 Cleanup();
2397 } 2405 }
2398 2406
2399 void RenderProcessHostImpl::GetAudioOutputControllers( 2407 void RenderProcessHostImpl::GetAudioOutputControllers(
2400 const GetAudioOutputControllersCallback& callback) const { 2408 const GetAudioOutputControllersCallback& callback) const {
2401 audio_renderer_host()->GetOutputControllers(callback); 2409 audio_renderer_host()->GetOutputControllers(callback);
2402 } 2410 }
2403 2411
2404 } // namespace content 2412 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698