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..894ff848c0c1faf04c7c4f1aa750f6de87ec31a2 100644 |
--- a/content/browser/loader/mojo_async_resource_handler.h |
+++ b/content/browser/loader/mojo_async_resource_handler.h |
@@ -91,6 +91,10 @@ class CONTENT_EXPORT MojoAsyncResourceHandler |
bool CheckForSufficientResource(); |
void OnWritable(MojoResult result); |
void Cancel(); |
+ // Calculates the diff between URLRequest::GetTotalReceivedBytes() and |
+ // |reported_total_received_bytes_|, returns it, and updates |
+ // |reported_total_received_bytes_|. |
+ int64_t CalculateRecentlyReceivedBytes(); |
// This function can be overriden only for tests. |
virtual void ReportBadMessage(const std::string& error); |