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

Unified Diff: net/url_request/url_request_ftp_job.h

Issue 10537056: Replaced static URLRequestFtpJob factory with non-static protocol handler for FTP jobs. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed whitespace Created 8 years, 6 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_ftp_job.h
diff --git a/net/url_request/url_request_ftp_job.h b/net/url_request/url_request_ftp_job.h
index 05cbb33979c8e6aad32b4f8e93259833a28ea36c..4a993bcb779e766f8c1692dc3d69c1606148ef77 100644
--- a/net/url_request/url_request_ftp_job.h
+++ b/net/url_request/url_request_ftp_job.h
@@ -17,13 +17,19 @@
namespace net {
+class NetworkDelegate;
+class FtpTransactionFactory;
+class FtpAuthCache;
class URLRequestContext;
// A URLRequestJob subclass that is built on top of FtpTransaction. It
// provides an implementation for FTP.
class URLRequestFtpJob : public URLRequestJob {
public:
- explicit URLRequestFtpJob(URLRequest* request);
+ URLRequestFtpJob(URLRequest* request,
+ NetworkDelegate* network_delegate,
+ FtpTransactionFactory* ftp_transaction_factory,
+ FtpAuthCache* ftp_auth_cache);
static URLRequestJob* Factory(URLRequest* request,
const std::string& scheme);
mmenke 2012/06/26 18:36:10 The plan is to get rid of this function in favor o
shalev 2012/06/26 19:05:01 Done.
@@ -69,6 +75,9 @@ class URLRequestFtpJob : public URLRequestJob {
base::WeakPtrFactory<URLRequestFtpJob> weak_factory_;
+ FtpTransactionFactory* ftp_transaction_factory_;
+ FtpAuthCache* ftp_auth_cache_;
+
DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob);
};

Powered by Google App Engine
This is Rietveld 408576698