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

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: fixes CmaMessageFilterHost callback reference, 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 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 GpuProcessHost::SendOnIO( 963 GpuProcessHost::SendOnIO(
964 GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED, 964 GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED,
965 CAUSE_FOR_GPU_LAUNCH_NO_LAUNCH, 965 CAUSE_FOR_GPU_LAUNCH_NO_LAUNCH,
966 new GpuMsg_UpdateValueState(id_, target, state)); 966 new GpuMsg_UpdateValueState(id_, target, state));
967 } else { 967 } else {
968 // Store the ValueState locally in case a Valuebuffer subscribes to it later 968 // Store the ValueState locally in case a Valuebuffer subscribes to it later
969 pending_valuebuffer_state_->UpdateState(target, state); 969 pending_valuebuffer_state_->UpdateState(target, state);
970 } 970 }
971 } 971 }
972 972
973 #if defined(ENABLE_BROWSER_CDMS)
974 media::BrowserCdm* RenderProcessHostImpl::GetBrowserCdm(int render_frame_id,
975 int cdm_id) const {
976 DCHECK_CURRENTLY_ON(BrowserThread::UI);
977 return browser_cdm_manager_->GetCdm(render_frame_id, cdm_id);
978 }
979 #endif
980
973 void RenderProcessHostImpl::AddRoute( 981 void RenderProcessHostImpl::AddRoute(
974 int32 routing_id, 982 int32 routing_id,
975 IPC::Listener* listener) { 983 IPC::Listener* listener) {
976 CHECK(!listeners_.Lookup(routing_id)) 984 CHECK(!listeners_.Lookup(routing_id))
977 << "Found Routing ID Conflict: " << routing_id; 985 << "Found Routing ID Conflict: " << routing_id;
978 listeners_.AddWithID(listener, routing_id); 986 listeners_.AddWithID(listener, routing_id);
979 } 987 }
980 988
981 void RenderProcessHostImpl::RemoveRoute(int32 routing_id) { 989 void RenderProcessHostImpl::RemoveRoute(int32 routing_id) {
982 DCHECK(listeners_.Lookup(routing_id) != NULL); 990 DCHECK(listeners_.Lookup(routing_id) != NULL);
(...skipping 1410 matching lines...) Expand 10 before | Expand all | Expand 10 after
2393 if (worker_ref_count_ == 0) 2401 if (worker_ref_count_ == 0)
2394 Cleanup(); 2402 Cleanup();
2395 } 2403 }
2396 2404
2397 void RenderProcessHostImpl::GetAudioOutputControllers( 2405 void RenderProcessHostImpl::GetAudioOutputControllers(
2398 const GetAudioOutputControllersCallback& callback) const { 2406 const GetAudioOutputControllersCallback& callback) const {
2399 audio_renderer_host()->GetOutputControllers(callback); 2407 audio_renderer_host()->GetOutputControllers(callback);
2400 } 2408 }
2401 2409
2402 } // namespace content 2410 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.h ('k') | content/public/browser/render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698