| 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);
|
|
|