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/test/test_render_view_host.h" | 10 #include "content/test/test_render_view_host.h" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
150 params.page_state = PageState::CreateForTesting( | 150 params.page_state = PageState::CreateForTesting( |
151 url, | 151 url, |
152 false, | 152 false, |
153 file_path_for_history_item ? "data" : NULL, | 153 file_path_for_history_item ? "data" : NULL, |
154 file_path_for_history_item); | 154 file_path_for_history_item); |
155 | 155 |
156 FrameHostMsg_DidCommitProvisionalLoad msg(GetRoutingID(), params); | 156 FrameHostMsg_DidCommitProvisionalLoad msg(GetRoutingID(), params); |
157 OnNavigate(msg); | 157 OnNavigate(msg); |
158 } | 158 } |
159 | 159 |
160 void TestRenderFrameHost::SendBeginNavigationWithURL(const GURL& url) { | |
161 FrameHostMsg_BeginNavigation_Params params; | |
162 params.url = url; | |
nasko
2014/07/07 11:35:10
Why not fill in the rest of the params with some s
clamy
2014/07/07 13:36:23
Done.
| |
163 OnBeginNavigation(params); | |
164 } | |
160 } // namespace content | 165 } // namespace content |
OLD | NEW |