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

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

Issue 2413663003: Expose GlobalRequestID in NavigationHandle and ResourceRequestInfo. (Closed)
Patch Set: Use OnURLRequestDestroyed Created 4 years, 1 month 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/frame_host/frame_tree_node.h" 7 #include "content/browser/frame_host/frame_tree_node.h"
8 #include "content/browser/loader/global_routing_id.h" 8 #include "content/browser/loader/global_routing_id.h"
9 #include "content/browser/loader/resource_message_filter.h" 9 #include "content/browser/loader/resource_message_filter.h"
10 #include "content/browser/web_contents/web_contents_impl.h" 10 #include "content/browser/web_contents/web_contents_impl.h"
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 } 225 }
226 226
227 int ResourceRequestInfoImpl::GetChildID() const { 227 int ResourceRequestInfoImpl::GetChildID() const {
228 return child_id_; 228 return child_id_;
229 } 229 }
230 230
231 int ResourceRequestInfoImpl::GetRouteID() const { 231 int ResourceRequestInfoImpl::GetRouteID() const {
232 return route_id_; 232 return route_id_;
233 } 233 }
234 234
235 GlobalRequestID ResourceRequestInfoImpl::GetGlobalRequestID() const {
236 return GlobalRequestID(child_id_, request_id_);
237 }
238
235 int ResourceRequestInfoImpl::GetOriginPID() const { 239 int ResourceRequestInfoImpl::GetOriginPID() const {
236 return origin_pid_; 240 return origin_pid_;
237 } 241 }
238 242
239 int ResourceRequestInfoImpl::GetRenderFrameID() const { 243 int ResourceRequestInfoImpl::GetRenderFrameID() const {
240 return render_frame_id_; 244 return render_frame_id_;
241 } 245 }
242 246
243 int ResourceRequestInfoImpl::GetFrameTreeNodeId() const { 247 int ResourceRequestInfoImpl::GetFrameTreeNodeId() const {
244 return frame_tree_node_id_; 248 return frame_tree_node_id_;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 request->SetUserData( 321 request->SetUserData(
318 URLRequestUserData::kUserDataKey, 322 URLRequestUserData::kUserDataKey,
319 new URLRequestUserData(render_process_id, render_frame_id)); 323 new URLRequestUserData(render_process_id, render_frame_id));
320 } 324 }
321 } 325 }
322 326
323 int ResourceRequestInfoImpl::GetRequestID() const { 327 int ResourceRequestInfoImpl::GetRequestID() const {
324 return request_id_; 328 return request_id_;
325 } 329 }
326 330
327 GlobalRequestID ResourceRequestInfoImpl::GetGlobalRequestID() const {
328 return GlobalRequestID(child_id_, request_id_);
329 }
330
331 GlobalRoutingID ResourceRequestInfoImpl::GetGlobalRoutingID() const { 331 GlobalRoutingID ResourceRequestInfoImpl::GetGlobalRoutingID() const {
332 return GlobalRoutingID(child_id_, route_id_); 332 return GlobalRoutingID(child_id_, route_id_);
333 } 333 }
334 334
335 void ResourceRequestInfoImpl::UpdateForTransfer( 335 void ResourceRequestInfoImpl::UpdateForTransfer(
336 int child_id, 336 int child_id,
337 int route_id, 337 int route_id,
338 int render_frame_id, 338 int render_frame_id,
339 int origin_pid, 339 int origin_pid,
340 int request_id, 340 int request_id,
341 base::WeakPtr<ResourceMessageFilter> filter) { 341 base::WeakPtr<ResourceMessageFilter> filter) {
342 child_id_ = child_id; 342 child_id_ = child_id;
343 route_id_ = route_id; 343 route_id_ = route_id;
344 render_frame_id_ = render_frame_id; 344 render_frame_id_ = render_frame_id;
345 origin_pid_ = origin_pid; 345 origin_pid_ = origin_pid;
346 request_id_ = request_id; 346 request_id_ = request_id;
347 filter_ = filter; 347 filter_ = filter;
348 } 348 }
349 349
350 void ResourceRequestInfoImpl::ResetBody() { 350 void ResourceRequestInfoImpl::ResetBody() {
351 body_ = nullptr; 351 body_ = nullptr;
352 } 352 }
353 353
354 } // namespace content 354 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_request_info_impl.h ('k') | content/public/browser/navigation_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698