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

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

Issue 2446553002: Support Service Worker NavigationPreload with PlzNavigate. (Closed)
Patch Set: remove unnecessary comment Created 4 years, 1 month 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 <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 void MockRenderProcessHost::PurgeAndSuspend() {} 301 void MockRenderProcessHost::PurgeAndSuspend() {}
302 302
303 mojom::Renderer* MockRenderProcessHost::GetRendererInterface() { 303 mojom::Renderer* MockRenderProcessHost::GetRendererInterface() {
304 if (!renderer_interface_) { 304 if (!renderer_interface_) {
305 renderer_interface_.reset(new mojom::RendererAssociatedPtr); 305 renderer_interface_.reset(new mojom::RendererAssociatedPtr);
306 mojo::GetDummyProxyForTesting(renderer_interface_.get()); 306 mojo::GetDummyProxyForTesting(renderer_interface_.get());
307 } 307 }
308 return renderer_interface_->get(); 308 return renderer_interface_->get();
309 } 309 }
310 310
311 MojoURLLoaderFactoryGetter
312 MockRenderProcessHost::CreateURLLoaderFactoryGetter() {
313 return MojoURLLoaderFactoryGetter();
314 }
315
311 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { 316 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) {
312 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); 317 RenderProcessHostImpl::FilterURL(this, empty_allowed, url);
313 } 318 }
314 319
315 #if defined(ENABLE_WEBRTC) 320 #if defined(ENABLE_WEBRTC)
316 void MockRenderProcessHost::EnableAudioDebugRecordings( 321 void MockRenderProcessHost::EnableAudioDebugRecordings(
317 const base::FilePath& file) { 322 const base::FilePath& file) {
318 } 323 }
319 324
320 void MockRenderProcessHost::DisableAudioDebugRecordings() {} 325 void MockRenderProcessHost::DisableAudioDebugRecordings() {}
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 386 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
382 it != processes_.end(); ++it) { 387 it != processes_.end(); ++it) {
383 if (*it == host) { 388 if (*it == host) {
384 processes_.weak_erase(it); 389 processes_.weak_erase(it);
385 break; 390 break;
386 } 391 }
387 } 392 }
388 } 393 }
389 394
390 } // namespace content 395 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698