Index: net/url_request/url_request_new_ftp_job.h |
diff --git a/net/url_request/url_request_new_ftp_job.h b/net/url_request/url_request_new_ftp_job.h |
index ebdb0e4489fd7fd6ab92f8bb5cf3d4a22effc83a..65229810e0625777ad02f7083bc2b9dfc3ef2eb6 100644 |
--- a/net/url_request/url_request_new_ftp_job.h |
+++ b/net/url_request/url_request_new_ftp_job.h |
@@ -31,6 +31,11 @@ class URLRequestNewFtpJob : public URLRequestJob { |
virtual void Start(); |
virtual void Kill(); |
virtual net::LoadState GetLoadState() const; |
+ virtual bool NeedsAuth(); |
+ virtual void GetAuthChallengeInfo(scoped_refptr<net::AuthChallengeInfo>*); |
wtc
2009/08/25 20:52:50
Let's provide the parameter name (auth_info) here.
|
+ virtual void SetAuth(const std::wstring& username, |
+ const std::wstring& password); |
+ virtual void CancelAuth(); |
// TODO(ibrar): Yet to give another look at this function. |
virtual uint64 GetUploadProgress() const { return 0; } |
@@ -42,9 +47,9 @@ class URLRequestNewFtpJob : public URLRequestJob { |
void OnStartCompleted(int result); |
void OnReadCompleted(int result); |
- int ProcessFtpDir(net::IOBuffer *buf, int buf_size, int bytes_read); |
+ void RestartWithAuth(); |
- net::AuthState server_auth_state_; |
+ int ProcessFtpDir(net::IOBuffer *buf, int buf_size, int bytes_read); |
net::FtpRequestInfo request_info_; |
scoped_ptr<net::FtpTransaction> transaction_; |
@@ -60,6 +65,8 @@ class URLRequestNewFtpJob : public URLRequestJob { |
bool read_in_progress_; |
std::string encoding_; |
+ scoped_refptr<net::AuthData> server_auth_; |
+ |
// Keep a reference to the url request context to be sure it's not deleted |
// before us. |
scoped_refptr<URLRequestContext> context_; |