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

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 451623002: Getting rid of net::LOAD_ENABLE_LOAD_TIMING (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TODO, test fixup. 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #include "content/browser/loader/resource_dispatcher_host_impl.h" 7 #include "content/browser/loader/resource_dispatcher_host_impl.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <set> 10 #include <set>
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 request_data.is_main_frame, 1068 request_data.is_main_frame,
1069 request_data.parent_is_main_frame, 1069 request_data.parent_is_main_frame,
1070 request_data.parent_render_frame_id, 1070 request_data.parent_render_frame_id,
1071 request_data.resource_type, 1071 request_data.resource_type,
1072 request_data.transition_type, 1072 request_data.transition_type,
1073 request_data.should_replace_current_entry, 1073 request_data.should_replace_current_entry,
1074 false, // is download 1074 false, // is download
1075 false, // is stream 1075 false, // is stream
1076 allow_download, 1076 allow_download,
1077 request_data.has_user_gesture, 1077 request_data.has_user_gesture,
1078 request_data.enable_load_timing,
1078 request_data.referrer_policy, 1079 request_data.referrer_policy,
1079 request_data.visiblity_state, 1080 request_data.visiblity_state,
1080 resource_context, 1081 resource_context,
1081 filter_->GetWeakPtr(), 1082 filter_->GetWeakPtr(),
1082 !is_sync_load); 1083 !is_sync_load);
1083 // Request takes ownership. 1084 // Request takes ownership.
1084 extra_info->AssociateWithRequest(new_request.get()); 1085 extra_info->AssociateWithRequest(new_request.get());
1085 1086
1086 if (new_request->url().SchemeIs(url::kBlobScheme)) { 1087 if (new_request->url().SchemeIs(url::kBlobScheme)) {
1087 // Hang on to a reference to ensure the blob is not released prior 1088 // Hang on to a reference to ensure the blob is not released prior
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 false, // is_main_frame 1289 false, // is_main_frame
1289 false, // parent_is_main_frame 1290 false, // parent_is_main_frame
1290 -1, // parent_render_frame_id 1291 -1, // parent_render_frame_id
1291 RESOURCE_TYPE_SUB_RESOURCE, 1292 RESOURCE_TYPE_SUB_RESOURCE,
1292 PAGE_TRANSITION_LINK, 1293 PAGE_TRANSITION_LINK,
1293 false, // should_replace_current_entry 1294 false, // should_replace_current_entry
1294 download, // is_download 1295 download, // is_download
1295 false, // is_stream 1296 false, // is_stream
1296 download, // allow_download 1297 download, // allow_download
1297 false, // has_user_gesture 1298 false, // has_user_gesture
1299 false, // enable_load_timing
1298 blink::WebReferrerPolicyDefault, 1300 blink::WebReferrerPolicyDefault,
1299 blink::WebPageVisibilityStateVisible, 1301 blink::WebPageVisibilityStateVisible,
1300 context, 1302 context,
1301 base::WeakPtr<ResourceMessageFilter>(), // filter 1303 base::WeakPtr<ResourceMessageFilter>(), // filter
1302 true); // is_async 1304 true); // is_async
1303 } 1305 }
1304 1306
1305 void ResourceDispatcherHostImpl::OnRenderViewHostCreated( 1307 void ResourceDispatcherHostImpl::OnRenderViewHostCreated(
1306 int child_id, 1308 int child_id,
1307 int route_id) { 1309 int route_id) {
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
1978 1980
1979 // Add a flag to selectively bypass the data reduction proxy if the resource 1981 // Add a flag to selectively bypass the data reduction proxy if the resource
1980 // type is not an image. 1982 // type is not an image.
1981 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) 1983 if (request_data.resource_type != RESOURCE_TYPE_IMAGE)
1982 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; 1984 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY;
1983 1985
1984 return load_flags; 1986 return load_flags;
1985 } 1987 }
1986 1988
1987 } // namespace content 1989 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698