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

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

Issue 2496193002: Implement transfer navigation with mojo (Closed)
Patch Set: fix Created 4 years 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 mojom::URLLoaderAssociatedRequest url_loader_request,
343 mojom::URLLoaderClientAssociatedPtr url_loader_client) {
342 child_id_ = child_id; 344 child_id_ = child_id;
343 route_id_ = route_id; 345 route_id_ = route_id;
344 render_frame_id_ = render_frame_id; 346 render_frame_id_ = render_frame_id;
345 origin_pid_ = origin_pid; 347 origin_pid_ = origin_pid;
346 request_id_ = request_id; 348 request_id_ = request_id;
347 filter_ = filter; 349 filter_ = filter;
350
351 // on_transfer_ is non-null only when MojoAsyncResourceHandler is used.
352 if (on_transfer_) {
353 on_transfer_.Run(std::move(url_loader_request),
354 std::move(url_loader_client));
355 }
348 } 356 }
349 357
350 void ResourceRequestInfoImpl::ResetBody() { 358 void ResourceRequestInfoImpl::ResetBody() {
351 body_ = nullptr; 359 body_ = nullptr;
352 } 360 }
353 361
354 } // namespace content 362 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_request_info_impl.h ('k') | third_party/WebKit/LayoutTests/FlagExpectations/site-per-process » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698