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

Side by Side Diff: net/http/http_transaction.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: rebase Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_HTTP_HTTP_TRANSACTION_H_ 5 #ifndef NET_HTTP_HTTP_TRANSACTION_H_
6 #define NET_HTTP_HTTP_TRANSACTION_H_ 6 #define NET_HTTP_HTTP_TRANSACTION_H_
7 7
8 #include "net/base/completion_callback.h" 8 #include "net/base/completion_callback.h"
9 #include "net/base/load_states.h" 9 #include "net/base/load_states.h"
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
11 #include "net/base/upload_progress.h"
11 12
12 namespace net { 13 namespace net {
13 14
14 class AuthCredentials; 15 class AuthCredentials;
15 class BoundNetLog; 16 class BoundNetLog;
16 struct HttpRequestInfo; 17 struct HttpRequestInfo;
17 class HttpResponseInfo; 18 class HttpResponseInfo;
18 class IOBuffer; 19 class IOBuffer;
19 class X509Certificate; 20 class X509Certificate;
20 21
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 102
102 // Returns the response info for this transaction or NULL if the response 103 // Returns the response info for this transaction or NULL if the response
103 // info is not available. 104 // info is not available.
104 virtual const HttpResponseInfo* GetResponseInfo() const = 0; 105 virtual const HttpResponseInfo* GetResponseInfo() const = 0;
105 106
106 // Returns the load state for this transaction. 107 // Returns the load state for this transaction.
107 virtual LoadState GetLoadState() const = 0; 108 virtual LoadState GetLoadState() const = 0;
108 109
109 // Returns the upload progress in bytes. If there is no upload data, 110 // Returns the upload progress in bytes. If there is no upload data,
110 // zero will be returned. This does not include the request headers. 111 // zero will be returned. This does not include the request headers.
111 virtual uint64 GetUploadProgress() const = 0; 112 virtual UploadProgress GetUploadProgress() const = 0;
112 }; 113 };
113 114
114 } // namespace net 115 } // namespace net
115 116
116 #endif // NET_HTTP_HTTP_TRANSACTION_H_ 117 #endif // NET_HTTP_HTTP_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698