diff options
Diffstat (limited to 'chromium/content/browser/loader/mojo_async_resource_handler.h')
-rw-r--r-- | chromium/content/browser/loader/mojo_async_resource_handler.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/chromium/content/browser/loader/mojo_async_resource_handler.h b/chromium/content/browser/loader/mojo_async_resource_handler.h index c612b2f72e2..ad87065771e 100644 --- a/chromium/content/browser/loader/mojo_async_resource_handler.h +++ b/chromium/content/browser/loader/mojo_async_resource_handler.h @@ -13,7 +13,6 @@ #include "base/macros.h" #include "base/memory/ref_counted.h" #include "base/memory/weak_ptr.h" -#include "base/time/time.h" #include "content/browser/loader/resource_handler.h" #include "content/common/content_export.h" #include "content/public/common/resource_type.h" @@ -82,10 +81,11 @@ class CONTENT_EXPORT MojoAsyncResourceHandler void OnResponseCompleted( const net::URLRequestStatus& status, std::unique_ptr<ResourceController> controller) override; - void OnDataDownloaded(int bytes_downloaded) override; // network::mojom::URLLoader implementation: - void FollowRedirect(const base::Optional<net::HttpRequestHeaders>& + void FollowRedirect(const base::Optional<std::vector<std::string>>& + to_be_removed_request_headers, + const base::Optional<net::HttpRequestHeaders>& modified_request_headers) override; void ProceedWithResponse() override; void SetPriority(net::RequestPriority priority, @@ -149,13 +149,12 @@ class CONTENT_EXPORT MojoAsyncResourceHandler bool did_defer_on_writing_ = false; bool did_defer_on_redirect_ = false; bool did_defer_on_response_started_ = false; + + // The time transfer size should be reported next. + base::TimeTicks time_transfer_size_next_report_; int64_t reported_total_received_bytes_ = 0; int64_t total_written_bytes_ = 0; - // Used for UMA histograms. - base::TimeTicks time_response_started_; - base::TimeTicks time_proceed_with_response_; - // Pointer to parent's information about the read buffer. Only non-null while // OnWillRead is deferred. scoped_refptr<net::IOBuffer>* parent_buffer_ = nullptr; |