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

Unified Diff: net/http/http_stream.h

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_stream.h
diff --git a/net/http/http_stream.h b/net/http/http_stream.h
index 67252ac96589c179ae38c8a9cf623516a47418e3..6016018a8187c34534bcec6e636e4cc951975919 100644
--- a/net/http/http_stream.h
+++ b/net/http/http_stream.h
@@ -19,6 +19,7 @@
#include "base/memory/scoped_ptr.h"
#include "net/base/completion_callback.h"
#include "net/base/net_export.h"
+#include "net/base/upload_progress.h"
namespace net {
@@ -53,7 +54,7 @@ class NET_EXPORT_PRIVATE HttpStream {
const CompletionCallback& callback) = 0;
// Queries the UploadDataStream for its progress (bytes sent).
- virtual uint64 GetUploadProgress() const = 0;
+ virtual UploadProgress GetUploadProgress() const = 0;
// Reads from the underlying socket until the response headers have been
// completely received. ERR_IO_PENDING is returned if the operation could

Powered by Google App Engine
This is Rietveld 408576698