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

Side by Side Diff: content/child/resource_dispatcher.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/child/request_info.cc ('k') | content/child/web_url_loader_impl.cc » ('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 (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/child/resource_dispatcher.h" 7 #include "content/child/resource_dispatcher.h"
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 request_.referrer_policy = request_info.referrer_policy; 121 request_.referrer_policy = request_info.referrer_policy;
122 request_.headers = request_info.headers; 122 request_.headers = request_info.headers;
123 request_.load_flags = request_info.load_flags; 123 request_.load_flags = request_info.load_flags;
124 request_.origin_pid = request_info.requestor_pid; 124 request_.origin_pid = request_info.requestor_pid;
125 request_.resource_type = request_info.request_type; 125 request_.resource_type = request_info.request_type;
126 request_.priority = request_info.priority; 126 request_.priority = request_info.priority;
127 request_.request_context = request_info.request_context; 127 request_.request_context = request_info.request_context;
128 request_.appcache_host_id = request_info.appcache_host_id; 128 request_.appcache_host_id = request_info.appcache_host_id;
129 request_.download_to_file = request_info.download_to_file; 129 request_.download_to_file = request_info.download_to_file;
130 request_.has_user_gesture = request_info.has_user_gesture; 130 request_.has_user_gesture = request_info.has_user_gesture;
131 request_.enable_load_timing = request_info.enable_load_timing;
131 132
132 const RequestExtraData kEmptyData; 133 const RequestExtraData kEmptyData;
133 const RequestExtraData* extra_data; 134 const RequestExtraData* extra_data;
134 if (request_info.extra_data) 135 if (request_info.extra_data)
135 extra_data = static_cast<RequestExtraData*>(request_info.extra_data); 136 extra_data = static_cast<RequestExtraData*>(request_info.extra_data);
136 else 137 else
137 extra_data = &kEmptyData; 138 extra_data = &kEmptyData;
138 request_.visiblity_state = extra_data->visibility_state(); 139 request_.visiblity_state = extra_data->visibility_state();
139 request_.render_frame_id = extra_data->render_frame_id(); 140 request_.render_frame_id = extra_data->render_frame_id();
140 request_.is_main_frame = extra_data->is_main_frame(); 141 request_.is_main_frame = extra_data->is_main_frame();
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 void ResourceDispatcher::ReleaseResourcesInMessageQueue(MessageQueue* queue) { 860 void ResourceDispatcher::ReleaseResourcesInMessageQueue(MessageQueue* queue) {
860 while (!queue->empty()) { 861 while (!queue->empty()) {
861 IPC::Message* message = queue->front(); 862 IPC::Message* message = queue->front();
862 ReleaseResourcesInDataMessage(*message); 863 ReleaseResourcesInDataMessage(*message);
863 queue->pop_front(); 864 queue->pop_front();
864 delete message; 865 delete message;
865 } 866 }
866 } 867 }
867 868
868 } // namespace content 869 } // namespace content
OLDNEW
« no previous file with comments | « content/child/request_info.cc ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698