OLD | NEW |
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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
159 FrameHostMsg_DidCommitProvisionalLoad msg(GetRoutingID(), params); | 159 FrameHostMsg_DidCommitProvisionalLoad msg(GetRoutingID(), params); |
160 OnNavigate(msg); | 160 OnNavigate(msg); |
161 } | 161 } |
162 | 162 |
163 void TestRenderFrameHost::SendBeginNavigationWithURL(const GURL& url) { | 163 void TestRenderFrameHost::SendBeginNavigationWithURL(const GURL& url) { |
164 FrameHostMsg_BeginNavigation_Params params; | 164 FrameHostMsg_BeginNavigation_Params params; |
165 params.method = "GET"; | 165 params.method = "GET"; |
166 params.url = url; | 166 params.url = url; |
167 params.referrer_policy = blink::WebReferrerPolicyDefault; | 167 params.referrer_policy = blink::WebReferrerPolicyDefault; |
168 params.load_flags = net::LOAD_NORMAL | net::LOAD_ENABLE_LOAD_TIMING; | 168 params.load_flags = net::LOAD_NORMAL; |
169 params.has_user_gesture = false; | 169 params.has_user_gesture = false; |
170 params.transition_type = PAGE_TRANSITION_LINK; | 170 params.transition_type = PAGE_TRANSITION_LINK; |
171 params.should_replace_current_entry = false; | 171 params.should_replace_current_entry = false; |
172 params.allow_download = true; | 172 params.allow_download = true; |
173 // TODO(clamy): When the BeginNavigation handler is no longer compiled out, | 173 // TODO(clamy): When the BeginNavigation handler is no longer compiled out, |
174 // call OnBeginNavigation directly. | 174 // call OnBeginNavigation directly. |
175 frame_tree_node()->render_manager()->OnBeginNavigation(params); | 175 frame_tree_node()->render_manager()->OnBeginNavigation(params); |
176 } | 176 } |
177 } // namespace content | 177 } // namespace content |
OLD | NEW |