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

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.h

Issue 2496193002: Implement transfer navigation with mojo (Closed)
Patch Set: fix 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 // This is the browser side of the resource dispatcher, it receives requests 5 // This is the browser side of the resource dispatcher, it receives requests
6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and 6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and
7 // dispatches them to URLRequests. It then forwards the messages from the 7 // dispatches them to URLRequests. It then forwards the messages from the
8 // URLRequests back to the correct process for handling. 8 // URLRequests back to the correct process for handling.
9 // 9 //
10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 mojom::URLLoaderClientAssociatedPtr url_loader_client); 537 mojom::URLLoaderClientAssociatedPtr url_loader_client);
538 538
539 void OnSyncLoad(int request_id, 539 void OnSyncLoad(int request_id,
540 const ResourceRequest& request_data, 540 const ResourceRequest& request_data,
541 IPC::Message* sync_result); 541 IPC::Message* sync_result);
542 542
543 bool IsRequestIDInUse(const GlobalRequestID& id) const; 543 bool IsRequestIDInUse(const GlobalRequestID& id) const;
544 544
545 // Update the ResourceRequestInfo and internal maps when a request is 545 // Update the ResourceRequestInfo and internal maps when a request is
546 // transferred from one process to another. 546 // transferred from one process to another.
547 void UpdateRequestForTransfer(int child_id, 547 void UpdateRequestForTransfer(
548 int route_id, 548 int child_id,
549 int request_id, 549 int route_id,
550 const ResourceRequest& request_data, 550 int request_id,
551 LoaderMap::iterator iter); 551 const ResourceRequest& request_data,
552 LoaderMap::iterator iter,
553 mojom::URLLoaderAssociatedRequest mojo_request,
554 mojom::URLLoaderClientAssociatedPtr url_loader_client);
552 555
553 // If |request_data| is for a request being transferred from another process, 556 // If |request_data| is for a request being transferred from another process,
554 // then CompleteTransfer method can be used to complete the transfer. 557 // then CompleteTransfer method can be used to complete the transfer.
555 void CompleteTransfer(int request_id, 558 void CompleteTransfer(int request_id,
556 const ResourceRequest& request_data, 559 const ResourceRequest& request_data,
557 int route_id); 560 int route_id,
561 mojom::URLLoaderAssociatedRequest mojo_request,
562 mojom::URLLoaderClientAssociatedPtr url_loader_client);
558 563
559 void BeginRequest( 564 void BeginRequest(
560 int request_id, 565 int request_id,
561 const ResourceRequest& request_data, 566 const ResourceRequest& request_data,
562 const SyncLoadResultCallback& sync_result_handler, // only valid for sync 567 const SyncLoadResultCallback& sync_result_handler, // only valid for sync
563 int route_id, 568 int route_id,
564 mojom::URLLoaderAssociatedRequest mojo_request, 569 mojom::URLLoaderAssociatedRequest mojo_request,
565 mojom::URLLoaderClientAssociatedPtr url_loader_client); 570 mojom::URLLoaderClientAssociatedPtr url_loader_client);
566 571
567 // There are requests which need decisions to be made like the following: 572 // There are requests which need decisions to be made like the following:
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 778
774 // Points to the registered download handler intercept. 779 // Points to the registered download handler intercept.
775 CreateDownloadHandlerIntercept create_download_handler_intercept_; 780 CreateDownloadHandlerIntercept create_download_handler_intercept_;
776 781
777 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); 782 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl);
778 }; 783 };
779 784
780 } // namespace content 785 } // namespace content
781 786
782 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ 787 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/loader/mojo_async_resource_handler.cc ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698