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

Unified Diff: net/url_request/url_request_new_ftp_job.h

Issue 173270: Implement RestartWithAuth for NewFtpTransaction. (Closed)
Patch Set: win compile fixes Created 11 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/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_;

Powered by Google App Engine
This is Rietveld 408576698