| Index: content/child/web_url_loader_impl.h
|
| diff --git a/content/child/web_url_loader_impl.h b/content/child/web_url_loader_impl.h
|
| index 676f2a6f2642b15e739b50e5c871f7fe86a42e5d..a45f0829d028a99d8e062b0dff23aac9eeaa9161 100644
|
| --- a/content/child/web_url_loader_impl.h
|
| +++ b/content/child/web_url_loader_impl.h
|
| @@ -10,6 +10,7 @@
|
| #include "content/common/content_export.h"
|
| #include "content/common/url_loader_factory.mojom.h"
|
| #include "content/public/common/resource_response.h"
|
| +#include "mojo/public/cpp/system/data_pipe.h"
|
| #include "net/url_request/redirect_info.h"
|
| #include "third_party/WebKit/public/platform/WebURLLoader.h"
|
| #include "url/gurl.h"
|
| @@ -24,9 +25,7 @@ struct CONTENT_EXPORT StreamOverrideParameters {
|
| public:
|
| StreamOverrideParameters();
|
| ~StreamOverrideParameters();
|
| - // TODO(clamy): The browser should be made aware on destruction of this struct
|
| - // that it can release its associated stream handle.
|
| - GURL stream_url;
|
| + mojo::ScopedDataPipeConsumerHandle consumer_handle;
|
| ResourceResponseHead response;
|
| std::vector<GURL> redirects;
|
| std::vector<ResourceResponseInfo> redirect_responses;
|
| @@ -35,6 +34,8 @@ struct CONTENT_EXPORT StreamOverrideParameters {
|
| // The delta between the actual transfer size and the one reported by the
|
| // AsyncResourceLoader due to not having the ResourceResponse.
|
| int total_transfer_size_delta;
|
| +
|
| + int total_transferred = 0;
|
| };
|
|
|
| class CONTENT_EXPORT WebURLLoaderImpl
|
|
|