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

Side by Side Diff: content/browser/frame_host/navigation_request.cc

Issue 1310743003: Consistently use LoFi for an entire page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bengr comments and rebase Created 5 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/browser/frame_host/navigation_request.h" 5 #include "content/browser/frame_host/navigation_request.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/frame_tree_node.h" 8 #include "content/browser/frame_host/frame_tree_node.h"
9 #include "content/browser/frame_host/navigation_controller_impl.h" 9 #include "content/browser/frame_host/navigation_controller_impl.h"
10 #include "content/browser/frame_host/navigation_handle_impl.h" 10 #include "content/browser/frame_host/navigation_handle_impl.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 request_body = new ResourceRequestBody(); 80 request_body = new ResourceRequestBody();
81 request_body->AppendBytes( 81 request_body->AppendBytes(
82 reinterpret_cast<const char *>( 82 reinterpret_cast<const char *>(
83 entry.GetBrowserInitiatedPostData()->front()), 83 entry.GetBrowserInitiatedPostData()->front()),
84 entry.GetBrowserInitiatedPostData()->size()); 84 entry.GetBrowserInitiatedPostData()->size());
85 } 85 }
86 86
87 scoped_ptr<NavigationRequest> navigation_request(new NavigationRequest( 87 scoped_ptr<NavigationRequest> navigation_request(new NavigationRequest(
88 frame_tree_node, 88 frame_tree_node,
89 entry.ConstructCommonNavigationParams(dest_url, dest_referrer, 89 entry.ConstructCommonNavigationParams(dest_url, dest_referrer,
90 frame_entry, navigation_type), 90 frame_entry, navigation_type,
91 LOFI_UNSPECIFIED),
91 BeginNavigationParams(method, headers.ToString(), 92 BeginNavigationParams(method, headers.ToString(),
92 LoadFlagFromNavigationType(navigation_type), 93 LoadFlagFromNavigationType(navigation_type),
93 false, // has_user_gestures 94 false, // has_user_gestures
94 false, // skip_service_worker 95 false, // skip_service_worker
95 REQUEST_CONTEXT_TYPE_LOCATION), 96 REQUEST_CONTEXT_TYPE_LOCATION),
96 entry.ConstructRequestNavigationParams( 97 entry.ConstructRequestNavigationParams(
97 frame_entry, navigation_start, is_same_document_history_load, 98 frame_entry, navigation_start, is_same_document_history_load,
98 frame_tree_node->has_committed_real_load(), 99 frame_tree_node->has_committed_real_load(),
99 controller->GetPendingEntryIndex() == -1, 100 controller->GetPendingEntryIndex() == -1,
100 controller->GetIndexOfEntry(&entry), 101 controller->GetIndexOfEntry(&entry),
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 frame_tree_node_->navigator()->FailedNavigation( 282 frame_tree_node_->navigator()->FailedNavigation(
282 frame_tree_node_, has_stale_copy_in_cache, net_error); 283 frame_tree_node_, has_stale_copy_in_cache, net_error);
283 } 284 }
284 285
285 void NavigationRequest::OnRequestStarted(base::TimeTicks timestamp) { 286 void NavigationRequest::OnRequestStarted(base::TimeTicks timestamp) {
286 frame_tree_node_->navigator()->LogResourceRequestTime(timestamp, 287 frame_tree_node_->navigator()->LogResourceRequestTime(timestamp,
287 common_params_.url); 288 common_params_.url);
288 } 289 }
289 290
290 } // namespace content 291 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_entry_impl.cc ('k') | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698