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

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

Issue 451623002: Getting rid of net::LOAD_ENABLE_LOAD_TIMING (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed content/browser/loader/resource_scheduler_unittest.cc. Created 6 years, 4 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/common/resource_messages.h ('k') | net/base/load_flags_list.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 "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
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
OLDNEW
« no previous file with comments | « content/common/resource_messages.h ('k') | net/base/load_flags_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698