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

Side by Side Diff: net/url_request/url_request_ftp_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.cc ('k') | net/url_request/url_request_ftp_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_FTP_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual void Start() OVERRIDE; 53 virtual void Start() OVERRIDE;
54 virtual void Kill() OVERRIDE; 54 virtual void Kill() OVERRIDE;
55 virtual LoadState GetLoadState() const OVERRIDE; 55 virtual LoadState GetLoadState() const OVERRIDE;
56 virtual bool NeedsAuth() OVERRIDE; 56 virtual bool NeedsAuth() OVERRIDE;
57 virtual void GetAuthChallengeInfo( 57 virtual void GetAuthChallengeInfo(
58 scoped_refptr<AuthChallengeInfo>* auth_info) OVERRIDE; 58 scoped_refptr<AuthChallengeInfo>* auth_info) OVERRIDE;
59 virtual void SetAuth(const AuthCredentials& credentials) OVERRIDE; 59 virtual void SetAuth(const AuthCredentials& credentials) OVERRIDE;
60 virtual void CancelAuth() OVERRIDE; 60 virtual void CancelAuth() OVERRIDE;
61 61
62 // TODO(ibrar): Yet to give another look at this function. 62 // TODO(ibrar): Yet to give another look at this function.
63 virtual uint64 GetUploadProgress() const OVERRIDE; 63 virtual UploadProgress GetUploadProgress() const OVERRIDE;
64 virtual bool ReadRawData(IOBuffer* buf, 64 virtual bool ReadRawData(IOBuffer* buf,
65 int buf_size, 65 int buf_size,
66 int *bytes_read) OVERRIDE; 66 int *bytes_read) OVERRIDE;
67 67
68 FtpRequestInfo request_info_; 68 FtpRequestInfo request_info_;
69 scoped_ptr<FtpTransaction> transaction_; 69 scoped_ptr<FtpTransaction> transaction_;
70 70
71 bool read_in_progress_; 71 bool read_in_progress_;
72 72
73 scoped_refptr<AuthData> server_auth_; 73 scoped_refptr<AuthData> server_auth_;
74 74
75 base::WeakPtrFactory<URLRequestFtpJob> weak_factory_; 75 base::WeakPtrFactory<URLRequestFtpJob> weak_factory_;
76 76
77 FtpTransactionFactory* ftp_transaction_factory_; 77 FtpTransactionFactory* ftp_transaction_factory_;
78 FtpAuthCache* ftp_auth_cache_; 78 FtpAuthCache* ftp_auth_cache_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); 80 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob);
81 }; 81 };
82 82
83 } // namespace net 83 } // namespace net
84 84
85 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ 85 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request.cc ('k') | net/url_request/url_request_ftp_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698