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

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

Issue 2954853002: Use Independent URLLoader
Patch Set: . Created 3 years, 6 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/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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 GlobalRoutingID ResourceRequestInfoImpl::GetGlobalRoutingID() const { 339 GlobalRoutingID ResourceRequestInfoImpl::GetGlobalRoutingID() const {
340 return GlobalRoutingID(GetChildID(), route_id_); 340 return GlobalRoutingID(GetChildID(), route_id_);
341 } 341 }
342 342
343 void ResourceRequestInfoImpl::UpdateForTransfer( 343 void ResourceRequestInfoImpl::UpdateForTransfer(
344 int route_id, 344 int route_id,
345 int render_frame_id, 345 int render_frame_id,
346 int origin_pid, 346 int origin_pid,
347 int request_id, 347 int request_id,
348 ResourceRequesterInfo* requester_info, 348 ResourceRequesterInfo* requester_info,
349 mojom::URLLoaderAssociatedRequest url_loader_request, 349 mojom::URLLoaderRequest url_loader_request,
350 mojom::URLLoaderClientPtr url_loader_client) { 350 mojom::URLLoaderClientPtr url_loader_client) {
351 route_id_ = route_id; 351 route_id_ = route_id;
352 render_frame_id_ = render_frame_id; 352 render_frame_id_ = render_frame_id;
353 origin_pid_ = origin_pid; 353 origin_pid_ = origin_pid;
354 request_id_ = request_id; 354 request_id_ = request_id;
355 requester_info_ = requester_info; 355 requester_info_ = requester_info;
356 356
357 // on_transfer_ is non-null only when MojoAsyncResourceHandler is used. 357 // on_transfer_ is non-null only when MojoAsyncResourceHandler is used.
358 if (on_transfer_) { 358 if (on_transfer_) {
359 on_transfer_.Run(std::move(url_loader_request), 359 on_transfer_.Run(std::move(url_loader_request),
360 std::move(url_loader_client)); 360 std::move(url_loader_client));
361 } 361 }
362 } 362 }
363 363
364 void ResourceRequestInfoImpl::ResetBody() { 364 void ResourceRequestInfoImpl::ResetBody() {
365 body_ = nullptr; 365 body_ = nullptr;
366 } 366 }
367 367
368 } // namespace content 368 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_request_info_impl.h ('k') | content/browser/loader/url_loader_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698