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

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

Issue 2460223003: Support Service Worker NavigationPreload with PlzNavigate. (Closed)
Patch Set: fix windows compile error 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 void MockRenderProcessHost::Resume() {} 303 void MockRenderProcessHost::Resume() {}
304 304
305 mojom::Renderer* MockRenderProcessHost::GetRendererInterface() { 305 mojom::Renderer* MockRenderProcessHost::GetRendererInterface() {
306 if (!renderer_interface_) { 306 if (!renderer_interface_) {
307 renderer_interface_.reset(new mojom::RendererAssociatedPtr); 307 renderer_interface_.reset(new mojom::RendererAssociatedPtr);
308 mojo::GetDummyProxyForTesting(renderer_interface_.get()); 308 mojo::GetDummyProxyForTesting(renderer_interface_.get());
309 } 309 }
310 return renderer_interface_->get(); 310 return renderer_interface_->get();
311 } 311 }
312 312
313 BrowserMessageFilter* MockRenderProcessHost::GetResourceMessageFilter() {
314 return nullptr;
315 }
316
313 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { 317 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) {
314 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); 318 RenderProcessHostImpl::FilterURL(this, empty_allowed, url);
315 } 319 }
316 320
317 #if defined(ENABLE_WEBRTC) 321 #if defined(ENABLE_WEBRTC)
318 void MockRenderProcessHost::EnableAudioDebugRecordings( 322 void MockRenderProcessHost::EnableAudioDebugRecordings(
319 const base::FilePath& file) { 323 const base::FilePath& file) {
320 } 324 }
321 325
322 void MockRenderProcessHost::DisableAudioDebugRecordings() {} 326 void MockRenderProcessHost::DisableAudioDebugRecordings() {}
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 387 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
384 it != processes_.end(); ++it) { 388 it != processes_.end(); ++it) {
385 if (*it == host) { 389 if (*it == host) {
386 processes_.weak_erase(it); 390 processes_.weak_erase(it);
387 break; 391 break;
388 } 392 }
389 } 393 }
390 } 394 }
391 395
392 } // namespace content 396 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698