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

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

Issue 483773002: PlzNavigate: implement CommitNavigation on the browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Using non-inherited structs Created 6 years, 3 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 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 "content/browser/frame_host/frame_tree.h" 7 #include "content/browser/frame_host/frame_tree.h"
8 #include "content/browser/frame_host/render_frame_host_delegate.h" 8 #include "content/browser/frame_host/render_frame_host_delegate.h"
9 #include "content/common/frame_messages.h" 9 #include "content/common/frame_messages.h"
10 #include "content/public/common/page_transition_types.h" 10 #include "content/public/common/page_transition_types.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 url, 160 url,
161 false, 161 false,
162 file_path_for_history_item ? "data" : NULL, 162 file_path_for_history_item ? "data" : NULL,
163 file_path_for_history_item); 163 file_path_for_history_item);
164 164
165 FrameHostMsg_DidCommitProvisionalLoad msg(GetRoutingID(), params); 165 FrameHostMsg_DidCommitProvisionalLoad msg(GetRoutingID(), params);
166 OnDidCommitProvisionalLoad(msg); 166 OnDidCommitProvisionalLoad(msg);
167 } 167 }
168 168
169 void TestRenderFrameHost::SendBeginNavigationWithURL(const GURL& url) { 169 void TestRenderFrameHost::SendBeginNavigationWithURL(const GURL& url) {
170 FrameHostMsg_BeginNavigation_Params params; 170 FrameHostMsg_BeginNavigation_Params begin_params;
171 params.method = "GET"; 171 CoreNavigationParams core_params;
172 params.url = url; 172 begin_params.method = "GET";
173 params.referrer = Referrer(GURL(), blink::WebReferrerPolicyDefault); 173 begin_params.load_flags = net::LOAD_NORMAL;
174 params.load_flags = net::LOAD_NORMAL; 174 begin_params.has_user_gesture = false;
175 params.has_user_gesture = false; 175 core_params.url = url;
176 params.transition_type = PAGE_TRANSITION_LINK; 176 core_params.referrer = Referrer(GURL(), blink::WebReferrerPolicyDefault);
177 params.should_replace_current_entry = false; 177 core_params.transition = PAGE_TRANSITION_LINK;
178 params.allow_download = true; 178 OnBeginNavigation(begin_params, core_params);
179 OnBeginNavigation(params);
180 } 179 }
181 180
182 void TestRenderFrameHost::DidDisownOpener() { 181 void TestRenderFrameHost::DidDisownOpener() {
183 OnDidDisownOpener(); 182 OnDidDisownOpener();
184 } 183 }
185 184
186 } // namespace content 185 } // namespace content
OLDNEW
« content/renderer/render_frame_impl.cc ('K') | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698