| 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 ae47419a9565684db5a487f06858ed51221d318c..81a2f85a61140d5f7ec0c96435d9da48b3328fc1 100644
|
| --- a/content/browser/loader/mojo_async_resource_handler.h
|
| +++ b/content/browser/loader/mojo_async_resource_handler.h
|
| @@ -12,6 +12,7 @@
|
|
|
| #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"
|
| @@ -93,6 +94,9 @@ class CONTENT_EXPORT MojoAsyncResourceHandler
|
| // This function can be overriden only for tests.
|
| virtual void ReportBadMessage(const std::string& error);
|
|
|
| + void OnTransfer(mojom::URLLoaderAssociatedRequest mojo_request,
|
| + mojom::URLLoaderClientAssociatedPtr url_loader_client);
|
| +
|
| ResourceDispatcherHostImpl* rdh_;
|
| mojo::AssociatedBinding<mojom::URLLoader> binding_;
|
|
|
| @@ -112,6 +116,7 @@ class CONTENT_EXPORT MojoAsyncResourceHandler
|
| size_t buffer_bytes_read_ = 0;
|
| scoped_refptr<SharedWriter> shared_writer_;
|
|
|
| + base::WeakPtrFactory<MojoAsyncResourceHandler> weak_factory_;
|
| DISALLOW_COPY_AND_ASSIGN(MojoAsyncResourceHandler);
|
| };
|
|
|
|
|