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

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: 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
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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1289 false, // is_main_frame 1290 false, // is_main_frame
1290 false, // parent_is_main_frame 1291 false, // parent_is_main_frame
1291 -1, // parent_render_frame_id 1292 -1, // parent_render_frame_id
1292 RESOURCE_TYPE_SUB_RESOURCE, 1293 RESOURCE_TYPE_SUB_RESOURCE,
1293 PAGE_TRANSITION_LINK, 1294 PAGE_TRANSITION_LINK,
1294 false, // should_replace_current_entry 1295 false, // should_replace_current_entry
1295 download, // is_download 1296 download, // is_download
1296 false, // is_stream 1297 false, // is_stream
1297 download, // allow_download 1298 download, // allow_download
1298 false, // has_user_gesture 1299 false, // has_user_gesture
1300 false, // enable_load_timing
1299 blink::WebReferrerPolicyDefault, 1301 blink::WebReferrerPolicyDefault,
1300 blink::WebPageVisibilityStateVisible, 1302 blink::WebPageVisibilityStateVisible,
1301 context, 1303 context,
1302 base::WeakPtr<ResourceMessageFilter>(), // filter 1304 base::WeakPtr<ResourceMessageFilter>(), // filter
1303 true); // is_async 1305 true); // is_async
1304 } 1306 }
1305 1307
1306 void ResourceDispatcherHostImpl::OnRenderViewHostCreated( 1308 void ResourceDispatcherHostImpl::OnRenderViewHostCreated(
1307 int child_id, 1309 int child_id,
1308 int route_id) { 1310 int route_id) {
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
1979 1981
1980 // Add a flag to selectively bypass the data reduction proxy if the resource 1982 // Add a flag to selectively bypass the data reduction proxy if the resource
1981 // type is not an image. 1983 // type is not an image.
1982 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) 1984 if (request_data.resource_type != RESOURCE_TYPE_IMAGE)
1983 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; 1985 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY;
1984 1986
1985 return load_flags; 1987 return load_flags;
1986 } 1988 }
1987 1989
1988 } // namespace content 1990 } // namespace content
OLDNEW
« no previous file with comments | « chrome/test/data/webui/net_internals/log_view_painter.js ('k') | content/browser/loader/resource_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698