Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1125)

Unified Diff: content/browser/loader/mojo_async_resource_handler.h

Issue 2566943002: Dispatch transfer size update notification on mojo-loading (Closed)
Patch Set: fix Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/loader/DEPS ('k') | content/browser/loader/mojo_async_resource_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « content/browser/loader/DEPS ('k') | content/browser/loader/mojo_async_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698