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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/resource_dispatcher_host_impl.h
diff --git a/content/browser/loader/resource_dispatcher_host_impl.h b/content/browser/loader/resource_dispatcher_host_impl.h
index 655d83fe80a4bde0b8343217f0838652104077a8..f537e0c28a7f3be6c62039c0c82c64d53e839877 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.h
+++ b/content/browser/loader/resource_dispatcher_host_impl.h
@@ -85,6 +85,9 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
using SyncLoadResultCallback =
base::Callback<void(const SyncLoadResult* result)>;
+ using TransferCallback =
+ base::Callback<void(mojom::URLLoaderAssociatedRequest,
+ mojom::URLLoaderClientAssociatedPtr)>;
// This constructor should be used if we want downloads to work correctly.
// TODO(ananta)
// Work on moving creation of download handlers out of
@@ -145,7 +148,7 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
// resumed by a new process.
void MarkAsTransferredNavigation(
const GlobalRequestID& id,
- const base::Closure& on_transfer_complete_callback);
+ const TransferCallback& on_transfer_complete_callback);
// Cancels a request previously marked as being transferred, for use when a
// navigation was cancelled.
@@ -554,7 +557,9 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
// then CompleteTransfer method can be used to complete the transfer.
void CompleteTransfer(int request_id,
const ResourceRequest& request_data,
- int route_id);
+ int route_id,
+ mojom::URLLoaderAssociatedRequest mojo_request,
+ mojom::URLLoaderClientAssociatedPtr url_loader_client);
void BeginRequest(
int request_id,
@@ -608,7 +613,8 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
AppCacheService* appcache_service,
int child_id,
int route_id,
- std::unique_ptr<ResourceHandler> handler);
+ std::unique_ptr<ResourceHandler> handler,
+ TransferCallback transfer_callback);
void OnCancelRequest(int request_id);
void OnReleaseDownloadedFile(int request_id);

Powered by Google App Engine
This is Rietveld 408576698