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

Side by Side Diff: net/url_request/url_request_http_job.h

Issue 10830182: net: Return size of upload as well as position from URLRequest::GetUploadProgress() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: _ 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/url_request/url_request_ftp_job.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 void RestartTransactionWithAuth(const AuthCredentials& credentials); 65 void RestartTransactionWithAuth(const AuthCredentials& credentials);
66 66
67 // Overridden from URLRequestJob: 67 // Overridden from URLRequestJob:
68 virtual void SetUpload(UploadData* upload) OVERRIDE; 68 virtual void SetUpload(UploadData* upload) OVERRIDE;
69 virtual void SetExtraRequestHeaders( 69 virtual void SetExtraRequestHeaders(
70 const HttpRequestHeaders& headers) OVERRIDE; 70 const HttpRequestHeaders& headers) OVERRIDE;
71 virtual void Start() OVERRIDE; 71 virtual void Start() OVERRIDE;
72 virtual void Kill() OVERRIDE; 72 virtual void Kill() OVERRIDE;
73 virtual LoadState GetLoadState() const OVERRIDE; 73 virtual LoadState GetLoadState() const OVERRIDE;
74 virtual uint64 GetUploadProgress() const OVERRIDE; 74 virtual UploadProgress GetUploadProgress() const OVERRIDE;
75 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE; 75 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
76 virtual bool GetCharset(std::string* charset) OVERRIDE; 76 virtual bool GetCharset(std::string* charset) OVERRIDE;
77 virtual void GetResponseInfo(HttpResponseInfo* info) OVERRIDE; 77 virtual void GetResponseInfo(HttpResponseInfo* info) OVERRIDE;
78 virtual bool GetResponseCookies(std::vector<std::string>* cookies) OVERRIDE; 78 virtual bool GetResponseCookies(std::vector<std::string>* cookies) OVERRIDE;
79 virtual int GetResponseCode() const OVERRIDE; 79 virtual int GetResponseCode() const OVERRIDE;
80 virtual Filter* SetupFilter() const OVERRIDE; 80 virtual Filter* SetupFilter() const OVERRIDE;
81 virtual bool IsSafeRedirect(const GURL& location) OVERRIDE; 81 virtual bool IsSafeRedirect(const GURL& location) OVERRIDE;
82 virtual bool NeedsAuth() OVERRIDE; 82 virtual bool NeedsAuth() OVERRIDE;
83 virtual void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) OVERRIDE; 83 virtual void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) OVERRIDE;
84 virtual void SetAuth(const AuthCredentials& credentials) OVERRIDE; 84 virtual void SetAuth(const AuthCredentials& credentials) OVERRIDE;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 bool awaiting_callback_; 239 bool awaiting_callback_;
240 240
241 scoped_ptr<HttpTransactionDelegateImpl> http_transaction_delegate_; 241 scoped_ptr<HttpTransactionDelegateImpl> http_transaction_delegate_;
242 242
243 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); 243 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob);
244 }; 244 };
245 245
246 } // namespace net 246 } // namespace net
247 247
248 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 248 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_ftp_job.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698