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

Side by Side Diff: content/test/test_render_frame_host.cc

Issue 1142123002: Remove swapped-out usage in --site-per-process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another round of fixes. Created 5 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/test/test_render_frame_host.h" 5 #include "content/test/test_render_frame_host.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "content/browser/frame_host/frame_tree.h" 8 #include "content/browser/frame_host/frame_tree.h"
9 #include "content/browser/frame_host/navigation_request.h" 9 #include "content/browser/frame_host/navigation_request.h"
10 #include "content/browser/frame_host/navigator.h" 10 #include "content/browser/frame_host/navigator.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 return static_cast<TestRenderViewHost*>( 65 return static_cast<TestRenderViewHost*>(
66 RenderFrameHostImpl::GetRenderViewHost()); 66 RenderFrameHostImpl::GetRenderViewHost());
67 } 67 }
68 68
69 MockRenderProcessHost* TestRenderFrameHost::GetProcess() { 69 MockRenderProcessHost* TestRenderFrameHost::GetProcess() {
70 return static_cast<MockRenderProcessHost*>(RenderFrameHostImpl::GetProcess()); 70 return static_cast<MockRenderProcessHost*>(RenderFrameHostImpl::GetProcess());
71 } 71 }
72 72
73 void TestRenderFrameHost::InitializeRenderFrameIfNeeded() { 73 void TestRenderFrameHost::InitializeRenderFrameIfNeeded() {
74 if (!render_view_host()->IsRenderViewLive()) { 74 if (!render_view_host()->IsRenderViewLive()) {
75 RenderViewHostTester::For(render_view_host())->CreateRenderView( 75 RenderViewHostTester::For(render_view_host())->CreateTestRenderView(
76 base::string16(), MSG_ROUTING_NONE, MSG_ROUTING_NONE, -1, false); 76 base::string16(), MSG_ROUTING_NONE, MSG_ROUTING_NONE, -1, false);
77 } 77 }
78 } 78 }
79 79
80 TestRenderFrameHost* TestRenderFrameHost::AppendChild( 80 TestRenderFrameHost* TestRenderFrameHost::AppendChild(
81 const std::string& frame_name) { 81 const std::string& frame_name) {
82 OnCreateChildFrame(GetProcess()->GetNextRoutingID(), 82 OnCreateChildFrame(GetProcess()->GetNextRoutingID(),
83 blink::WebTreeScopeType::Document, frame_name, 83 blink::WebTreeScopeType::Document, frame_name,
84 blink::WebSandboxFlags::None); 84 blink::WebSandboxFlags::None);
85 return static_cast<TestRenderFrameHost*>( 85 return static_cast<TestRenderFrameHost*>(
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 url_loader->SimulateServerRedirect(redirect_url); 303 url_loader->SimulateServerRedirect(redirect_url);
304 304
305 // Simulate the network stack commit. 305 // Simulate the network stack commit.
306 scoped_refptr<ResourceResponse> response(new ResourceResponse); 306 scoped_refptr<ResourceResponse> response(new ResourceResponse);
307 // TODO(carlosk): ideally with PlzNavigate it should be possible someday to 307 // TODO(carlosk): ideally with PlzNavigate it should be possible someday to
308 // fully commit the navigation at this call to CallOnResponseStarted. 308 // fully commit the navigation at this call to CallOnResponseStarted.
309 url_loader->CallOnResponseStarted(response, MakeEmptyStream()); 309 url_loader->CallOnResponseStarted(response, MakeEmptyStream());
310 } 310 }
311 311
312 } // namespace content 312 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698