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

Unified Diff: content/common/url_loader.mojom

Issue 2574143003: Implement upload progress handling in Mojo loading (Closed)
Patch Set: update TestExpectations Created 3 years, 11 months 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
Index: content/common/url_loader.mojom
diff --git a/content/common/url_loader.mojom b/content/common/url_loader.mojom
index c0e63c873419c25b33fd0d8f0279e59503ee43e2..df148699820ef34f7cd6f598ba54f1c117d95645 100644
--- a/content/common/url_loader.mojom
+++ b/content/common/url_loader.mojom
@@ -59,6 +59,12 @@ interface URLLoaderClient {
// TODO(yhirano): Consider using an unsigned type.
OnTransferSizeUpdated(int32 transfer_size_diff);
+ // Called when the service made some progress on the file upload. This is
+ // called only when the request has an upload data.
+ // Call the response closure when the client is ready to receive the next
+ // upload progress.
+ OnUploadProgress(int64 current_position, int64 total_size) => ();
+
// Called when the loader starts loading response body.
OnStartLoadingResponseBody(handle<data_pipe_consumer> body);

Powered by Google App Engine
This is Rietveld 408576698