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

Unified Diff: content/common/url_loader.mojom

Issue 2574143003: Implement upload progress handling in Mojo loading (Closed)
Patch Set: s/OnMesnsageReceived/Dispatch/ 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 f1b4d4252fa962452cc0869912df7402f1199bde..e7da7ea76d881a85633650ee18ec97db5c67656c 100644
--- a/content/common/url_loader.mojom
+++ b/content/common/url_loader.mojom
@@ -48,6 +48,12 @@ interface URLLoaderClient {
// instead.
OnDataDownloaded(int64 data_length, int64 encoded_length);
+ // Called when the service made some progress on the file upload. This is
+ // called only when the request has an upload data.
+ // The implementation should call the response closure when the client is
+ // ready to receive the next upload progress.
+ OnUploadProgress(int64 current_position, int64 total_size) => ();
+
// Called when cached metadata from a resource request is ready.
OnReceiveCachedMetadata(array<uint8> data);

Powered by Google App Engine
This is Rietveld 408576698