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

Unified Diff: content/child/url_loader_client_impl.cc

Issue 2574143003: Implement upload progress handling in Mojo loading (Closed)
Patch Set: +comment 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
« no previous file with comments | « content/child/url_loader_client_impl.h ('k') | content/common/url_loader.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/url_loader_client_impl.cc
diff --git a/content/child/url_loader_client_impl.cc b/content/child/url_loader_client_impl.cc
index f64ff5ea49cee4cf09d411443686b2e1c487318d..bb5eeba4593f040301504e443611b5e68342a528 100644
--- a/content/child/url_loader_client_impl.cc
+++ b/content/child/url_loader_client_impl.cc
@@ -178,4 +178,12 @@ void URLLoaderClientImpl::Dispatch(const IPC::Message& message) {
}
}
+void URLLoaderClientImpl::OnUploadProgress(int64_t current_position,
+ int64_t total_size,
+ const base::Closure& ack_callback) {
+ Dispatch(
+ ResourceMsg_UploadProgress(request_id_, current_position, total_size));
+ ack_callback.Run();
+}
+
} // namespace content
« no previous file with comments | « content/child/url_loader_client_impl.h ('k') | content/common/url_loader.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698