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

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

Issue 12582012: Implement FTP auth through proxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tests Created 7 years, 9 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) 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 scoped_refptr<AuthChallengeInfo>* auth_info) OVERRIDE; 73 scoped_refptr<AuthChallengeInfo>* auth_info) OVERRIDE;
74 virtual void SetAuth(const AuthCredentials& credentials) OVERRIDE; 74 virtual void SetAuth(const AuthCredentials& credentials) OVERRIDE;
75 virtual void CancelAuth() OVERRIDE; 75 virtual void CancelAuth() OVERRIDE;
76 76
77 // TODO(ibrar): Yet to give another look at this function. 77 // TODO(ibrar): Yet to give another look at this function.
78 virtual UploadProgress GetUploadProgress() const OVERRIDE; 78 virtual UploadProgress GetUploadProgress() const OVERRIDE;
79 virtual bool ReadRawData(IOBuffer* buf, 79 virtual bool ReadRawData(IOBuffer* buf,
80 int buf_size, 80 int buf_size,
81 int *bytes_read) OVERRIDE; 81 int *bytes_read) OVERRIDE;
82 82
83 void HandleAuthNeededResponse();
84
83 RequestPriority priority_; 85 RequestPriority priority_;
84 86
85 ProxyInfo proxy_info_; 87 ProxyInfo proxy_info_;
86 ProxyService::PacRequest* pac_request_; 88 ProxyService::PacRequest* pac_request_;
87 89
88 FtpRequestInfo ftp_request_info_; 90 FtpRequestInfo ftp_request_info_;
89 scoped_ptr<FtpTransaction> ftp_transaction_; 91 scoped_ptr<FtpTransaction> ftp_transaction_;
90 92
91 HttpRequestInfo http_request_info_; 93 HttpRequestInfo http_request_info_;
92 scoped_ptr<HttpTransaction> http_transaction_; 94 scoped_ptr<HttpTransaction> http_transaction_;
93 const HttpResponseInfo* response_info_; 95 const HttpResponseInfo* response_info_;
94 96
95 bool read_in_progress_; 97 bool read_in_progress_;
96 98
97 scoped_refptr<AuthData> server_auth_; 99 scoped_refptr<AuthData> auth_data_;
98 100
99 base::WeakPtrFactory<URLRequestFtpJob> weak_factory_; 101 base::WeakPtrFactory<URLRequestFtpJob> weak_factory_;
100 102
101 FtpTransactionFactory* ftp_transaction_factory_; 103 FtpTransactionFactory* ftp_transaction_factory_;
102 FtpAuthCache* ftp_auth_cache_; 104 FtpAuthCache* ftp_auth_cache_;
103 105
104 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); 106 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob);
105 }; 107 };
106 108
107 } // namespace net 109 } // namespace net
108 110
109 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ 111 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698