| Index: content/browser/loader/mojo_async_resource_handler.h
|
| diff --git a/content/browser/loader/mojo_async_resource_handler.h b/content/browser/loader/mojo_async_resource_handler.h
|
| index 81a2f85a61140d5f7ec0c96435d9da48b3328fc1..20b3c7ae74dbdec725aaced4398a1a234e89a4b9 100644
|
| --- a/content/browser/loader/mojo_async_resource_handler.h
|
| +++ b/content/browser/loader/mojo_async_resource_handler.h
|
| @@ -13,14 +13,14 @@
|
| #include "base/macros.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/weak_ptr.h"
|
| -#include "base/timer/timer.h"
|
| #include "content/browser/loader/resource_handler.h"
|
| #include "content/common/content_export.h"
|
| #include "content/common/url_loader.mojom.h"
|
| #include "mojo/public/cpp/bindings/associated_binding.h"
|
| #include "mojo/public/cpp/system/watcher.h"
|
| #include "net/base/io_buffer.h"
|
| -#include "url/gurl.h"
|
| +
|
| +class GURL;
|
|
|
| namespace net {
|
| class URLRequest;
|
| @@ -28,6 +28,7 @@ class URLRequest;
|
|
|
| namespace content {
|
| class ResourceDispatcherHostImpl;
|
| +class UploadProgressTracker;
|
| struct ResourceResponse;
|
|
|
| // Used to complete an asynchronous resource request in response to resource
|
| @@ -96,6 +97,8 @@ class CONTENT_EXPORT MojoAsyncResourceHandler
|
|
|
| void OnTransfer(mojom::URLLoaderAssociatedRequest mojo_request,
|
| mojom::URLLoaderClientAssociatedPtr url_loader_client);
|
| + void OnUploadProgressACK();
|
| + void SendUploadProgress(int64_t current_position, int64_t total_size);
|
|
|
| ResourceDispatcherHostImpl* rdh_;
|
| mojo::AssociatedBinding<mojom::URLLoader> binding_;
|
| @@ -116,6 +119,8 @@ class CONTENT_EXPORT MojoAsyncResourceHandler
|
| size_t buffer_bytes_read_ = 0;
|
| scoped_refptr<SharedWriter> shared_writer_;
|
|
|
| + std::unique_ptr<UploadProgressTracker> upload_progress_tracker_;
|
| +
|
| base::WeakPtrFactory<MojoAsyncResourceHandler> weak_factory_;
|
| DISALLOW_COPY_AND_ASSIGN(MojoAsyncResourceHandler);
|
| };
|
|
|