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

Unified Diff: net/http/http_pipelined_connection_impl.cc

Issue 10834178: net: Return size of upload as well as position from HttpTransaction::GetUploadProgress() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make UploadProgress a class instead of a struct Created 8 years, 4 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: net/http/http_pipelined_connection_impl.cc
diff --git a/net/http/http_pipelined_connection_impl.cc b/net/http/http_pipelined_connection_impl.cc
index 141d58a027aa781ea7d4eb5ef6ba44a6233f88a3..07abd1d619d422f4dcfa027df5c781aded7a419a 100644
--- a/net/http/http_pipelined_connection_impl.cc
+++ b/net/http/http_pipelined_connection_impl.cc
@@ -615,7 +615,8 @@ int HttpPipelinedConnectionImpl::ReadResponseBody(
buf, buf_len, callback);
}
-uint64 HttpPipelinedConnectionImpl::GetUploadProgress(int pipeline_id) const {
+UploadProgress HttpPipelinedConnectionImpl::GetUploadProgress(
+ int pipeline_id) const {
CHECK(ContainsKey(stream_info_map_, pipeline_id));
CHECK(stream_info_map_.find(pipeline_id)->second.parser.get());
return stream_info_map_.find(pipeline_id)->second.parser->GetUploadProgress();

Powered by Google App Engine
This is Rietveld 408576698