summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request_context.h
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-16 20:13:33 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-16 20:13:33 +0000
commitb65ce0948709317aadc38e18c1a16f23a72bb5eb (patch)
treef4f9f816e60a18afb214dbd0d1a5ea8108ad3863 /net/url_request/url_request_context.h
parent0f9d542be7a415150b3002e3a0c642f9f2e252a4 (diff)
downloadchromium_src-b65ce0948709317aadc38e18c1a16f23a72bb5eb.zip
chromium_src-b65ce0948709317aadc38e18c1a16f23a72bb5eb.tar.gz
chromium_src-b65ce0948709317aadc38e18c1a16f23a72bb5eb.tar.bz2
Add command line switch "--new-ftp" for new portable FTP
implementation. Add the (empty) URLRequestNewFtpJob class. Contributed by Ibrar Ahmed <ibrar.ahmad@gmail.com>. BUG=4965 R=darin,wtc Review URL: http://codereview.chromium.org/42197 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11768 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request_context.h')
-rw-r--r--net/url_request/url_request_context.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/net/url_request/url_request_context.h b/net/url_request/url_request_context.h
index e02cedd..8c09c90 100644
--- a/net/url_request/url_request_context.h
+++ b/net/url_request/url_request_context.h
@@ -16,8 +16,9 @@
#include "net/ftp/ftp_auth_cache.h"
namespace net {
-class HttpTransactionFactory;
class CookieMonster;
+class FtpTransactionFactory;
+class HttpTransactionFactory;
class ProxyService;
}
@@ -28,6 +29,7 @@ class URLRequestContext :
URLRequestContext()
: proxy_service_(NULL),
http_transaction_factory_(NULL),
+ ftp_transaction_factory_(NULL),
cookie_store_(NULL) {
}
@@ -41,6 +43,11 @@ class URLRequestContext :
return http_transaction_factory_;
}
+ // Gets the ftp transaction factory for this context.
+ net::FtpTransactionFactory* ftp_transaction_factory() {
+ return ftp_transaction_factory_;
+ }
+
// Gets the cookie store for this context.
net::CookieMonster* cookie_store() { return cookie_store_; }
@@ -72,6 +79,7 @@ class URLRequestContext :
// subclasses.
net::ProxyService* proxy_service_;
net::HttpTransactionFactory* http_transaction_factory_;
+ net::FtpTransactionFactory* ftp_transaction_factory_;
net::CookieMonster* cookie_store_;
net::CookiePolicy cookie_policy_;
net::FtpAuthCache ftp_auth_cache_;