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

Side by Side Diff: content/public/test/mock_render_process_host.cc

Issue 285333003: Support exposing Mojo services between render frames, render threads, and their respective hosts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 6 years, 6 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 #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/time/time.h" 9 #include "base/time/time.h"
10 #include "content/browser/child_process_security_policy_impl.h" 10 #include "content/browser/child_process_security_policy_impl.h"
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 base::TimeDelta MockRenderProcessHost::GetChildProcessIdleTime() const { 216 base::TimeDelta MockRenderProcessHost::GetChildProcessIdleTime() const {
217 return base::TimeDelta::FromMilliseconds(0); 217 return base::TimeDelta::FromMilliseconds(0);
218 } 218 }
219 219
220 void MockRenderProcessHost::ResumeRequestsForView(int route_id) { 220 void MockRenderProcessHost::ResumeRequestsForView(int route_id) {
221 } 221 }
222 222
223 void MockRenderProcessHost::NotifyTimezoneChange() { 223 void MockRenderProcessHost::NotifyTimezoneChange() {
224 } 224 }
225 225
226 ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() {
227 return NULL;
228 }
229
226 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { 230 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) {
227 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); 231 RenderProcessHostImpl::FilterURL(this, empty_allowed, url);
228 } 232 }
229 233
230 #if defined(ENABLE_WEBRTC) 234 #if defined(ENABLE_WEBRTC)
231 void MockRenderProcessHost::EnableAecDump(const base::FilePath& file) { 235 void MockRenderProcessHost::EnableAecDump(const base::FilePath& file) {
232 } 236 }
233 237
234 void MockRenderProcessHost::DisableAecDump() { 238 void MockRenderProcessHost::DisableAecDump() {
235 } 239 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 290 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
287 it != processes_.end(); ++it) { 291 it != processes_.end(); ++it) {
288 if (*it == host) { 292 if (*it == host) {
289 processes_.weak_erase(it); 293 processes_.weak_erase(it);
290 break; 294 break;
291 } 295 }
292 } 296 }
293 } 297 }
294 298
295 } // content 299 } // content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | content/public/test/mock_render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698