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

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

Issue 1285863003: ResourceScheduler: remove dependency on ResourceRequestInfo and request_id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fix tests. Created 5 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 #include "content/browser/loader/resource_request_info_impl.h" 5 #include "content/browser/loader/resource_request_info_impl.h"
6 6
7 #include "content/browser/loader/global_routing_id.h" 7 #include "content/browser/loader/global_routing_id.h"
8 #include "content/browser/loader/resource_message_filter.h" 8 #include "content/browser/loader/resource_message_filter.h"
9 #include "content/common/net/url_request_user_data.h" 9 #include "content/common/net/url_request_user_data.h"
10 #include "content/public/browser/global_request_id.h" 10 #include "content/public/browser/global_request_id.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 bool allow_download, 119 bool allow_download,
120 bool has_user_gesture, 120 bool has_user_gesture,
121 bool enable_load_timing, 121 bool enable_load_timing,
122 bool enable_upload_progress, 122 bool enable_upload_progress,
123 bool do_not_prompt_for_login, 123 bool do_not_prompt_for_login,
124 blink::WebReferrerPolicy referrer_policy, 124 blink::WebReferrerPolicy referrer_policy,
125 blink::WebPageVisibilityState visibility_state, 125 blink::WebPageVisibilityState visibility_state,
126 ResourceContext* context, 126 ResourceContext* context,
127 base::WeakPtr<ResourceMessageFilter> filter, 127 base::WeakPtr<ResourceMessageFilter> filter,
128 bool is_async) 128 bool is_async)
129 : cross_site_handler_(NULL), 129 : cross_site_handler_(nullptr),
130 detachable_handler_(NULL), 130 detachable_handler_(nullptr),
131 process_type_(process_type), 131 process_type_(process_type),
132 child_id_(child_id), 132 child_id_(child_id),
133 route_id_(route_id), 133 route_id_(route_id),
134 frame_tree_node_id_(frame_tree_node_id), 134 frame_tree_node_id_(frame_tree_node_id),
135 origin_pid_(origin_pid), 135 origin_pid_(origin_pid),
136 request_id_(request_id), 136 request_id_(request_id),
137 render_frame_id_(render_frame_id), 137 render_frame_id_(render_frame_id),
138 is_main_frame_(is_main_frame), 138 is_main_frame_(is_main_frame),
139 parent_is_main_frame_(parent_is_main_frame), 139 parent_is_main_frame_(parent_is_main_frame),
140 parent_render_frame_id_(parent_render_frame_id), 140 parent_render_frame_id_(parent_render_frame_id),
141 should_replace_current_entry_(should_replace_current_entry), 141 should_replace_current_entry_(should_replace_current_entry),
142 is_download_(is_download), 142 is_download_(is_download),
143 is_stream_(is_stream), 143 is_stream_(is_stream),
144 allow_download_(allow_download), 144 allow_download_(allow_download),
145 has_user_gesture_(has_user_gesture), 145 has_user_gesture_(has_user_gesture),
146 enable_load_timing_(enable_load_timing), 146 enable_load_timing_(enable_load_timing),
147 enable_upload_progress_(enable_upload_progress), 147 enable_upload_progress_(enable_upload_progress),
148 do_not_prompt_for_login_(do_not_prompt_for_login), 148 do_not_prompt_for_login_(do_not_prompt_for_login),
149 was_ignored_by_handler_(false), 149 was_ignored_by_handler_(false),
150 counted_as_in_flight_request_(false), 150 counted_as_in_flight_request_(false),
151 resource_type_(resource_type), 151 resource_type_(resource_type),
152 transition_type_(transition_type), 152 transition_type_(transition_type),
153 memory_cost_(0), 153 memory_cost_(0),
154 referrer_policy_(referrer_policy), 154 referrer_policy_(referrer_policy),
155 visibility_state_(visibility_state), 155 visibility_state_(visibility_state),
156 context_(context), 156 context_(context),
157 scheduled_resource_request_(nullptr),
157 filter_(filter), 158 filter_(filter),
158 is_async_(is_async) { 159 is_async_(is_async) {}
159 }
160 160
161 ResourceRequestInfoImpl::~ResourceRequestInfoImpl() { 161 ResourceRequestInfoImpl::~ResourceRequestInfoImpl() {
162 } 162 }
163 163
164 ResourceContext* ResourceRequestInfoImpl::GetContext() const { 164 ResourceContext* ResourceRequestInfoImpl::GetContext() const {
165 return context_; 165 return context_;
166 } 166 }
167 167
168 int ResourceRequestInfoImpl::GetChildID() const { 168 int ResourceRequestInfoImpl::GetChildID() const {
169 return child_id_; 169 return child_id_;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 base::WeakPtr<ResourceMessageFilter> filter) { 275 base::WeakPtr<ResourceMessageFilter> filter) {
276 child_id_ = child_id; 276 child_id_ = child_id;
277 route_id_ = route_id; 277 route_id_ = route_id;
278 origin_pid_ = origin_pid; 278 origin_pid_ = origin_pid;
279 request_id_ = request_id; 279 request_id_ = request_id;
280 parent_render_frame_id_ = parent_render_frame_id; 280 parent_render_frame_id_ = parent_render_frame_id;
281 filter_ = filter; 281 filter_ = filter;
282 } 282 }
283 283
284 } // namespace content 284 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698