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

Side by Side Diff: content/public/test/mock_render_process_host.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
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/public/test/mock_render_process_host.h" 5 #include "content/public/test/mock_render_process_host.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/process/process_handle.h" 9 #include "base/process/process_handle.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 void MockRenderProcessHost::OnAddSubscription(unsigned int target) { 241 void MockRenderProcessHost::OnAddSubscription(unsigned int target) {
242 } 242 }
243 243
244 void MockRenderProcessHost::OnRemoveSubscription(unsigned int target) { 244 void MockRenderProcessHost::OnRemoveSubscription(unsigned int target) {
245 } 245 }
246 246
247 void MockRenderProcessHost::SendUpdateValueState( 247 void MockRenderProcessHost::SendUpdateValueState(
248 unsigned int target, const gpu::ValueState& state) { 248 unsigned int target, const gpu::ValueState& state) {
249 } 249 }
250 250
251 #if defined(ENABLE_BROWSER_CDMS)
252 media::BrowserCdm* MockRenderProcessHost::GetBrowserCdm(int render_frame_id,
253 int cdm_id) const {
254 return nullptr;
255 }
256 #endif
257
251 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { 258 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) {
252 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); 259 RenderProcessHostImpl::FilterURL(this, empty_allowed, url);
253 } 260 }
254 261
255 #if defined(ENABLE_WEBRTC) 262 #if defined(ENABLE_WEBRTC)
256 void MockRenderProcessHost::EnableAecDump(const base::FilePath& file) { 263 void MockRenderProcessHost::EnableAecDump(const base::FilePath& file) {
257 } 264 }
258 265
259 void MockRenderProcessHost::DisableAecDump() { 266 void MockRenderProcessHost::DisableAecDump() {
260 } 267 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 318 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
312 it != processes_.end(); ++it) { 319 it != processes_.end(); ++it) {
313 if (*it == host) { 320 if (*it == host) {
314 processes_.weak_erase(it); 321 processes_.weak_erase(it);
315 break; 322 break;
316 } 323 }
317 } 324 }
318 } 325 }
319 326
320 } // content 327 } // content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698