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

Unified Diff: net/url_request/ftp_protocol_handler.cc

Issue 11931024: Removed static factories for data, ftp, file, and about jobs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync (r198785) Created 7 years, 7 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
« no previous file with comments | « net/url_request/ftp_protocol_handler.h ('k') | net/url_request/protocol_intercept_job_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/ftp_protocol_handler.cc
diff --git a/net/url_request/ftp_protocol_handler.cc b/net/url_request/ftp_protocol_handler.cc
index 7d9ba8858547f4945d08d635df7f37e6ddf0a95e..d8732953153de8d6498c64fbdbd8dcd971126456 100644
--- a/net/url_request/ftp_protocol_handler.cc
+++ b/net/url_request/ftp_protocol_handler.cc
@@ -7,6 +7,7 @@
#include "base/logging.h"
#include "net/base/net_errors.h"
#include "net/base/net_util.h"
+#include "net/ftp/ftp_auth_cache.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_error_job.h"
#include "net/url_request/url_request_ftp_job.h"
@@ -15,12 +16,13 @@
namespace net {
FtpProtocolHandler::FtpProtocolHandler(
- FtpTransactionFactory* ftp_transaction_factory,
- FtpAuthCache* ftp_auth_cache)
+ FtpTransactionFactory* ftp_transaction_factory)
: ftp_transaction_factory_(ftp_transaction_factory),
- ftp_auth_cache_(ftp_auth_cache) {
+ ftp_auth_cache_(new FtpAuthCache) {
DCHECK(ftp_transaction_factory_);
- DCHECK(ftp_auth_cache_);
+}
+
+FtpProtocolHandler::~FtpProtocolHandler() {
}
URLRequestJob* FtpProtocolHandler::MaybeCreateJob(
@@ -34,7 +36,7 @@ URLRequestJob* FtpProtocolHandler::MaybeCreateJob(
return new URLRequestFtpJob(request,
network_delegate,
ftp_transaction_factory_,
- ftp_auth_cache_);
+ ftp_auth_cache_.get());
}
} // namespace net
« no previous file with comments | « net/url_request/ftp_protocol_handler.h ('k') | net/url_request/protocol_intercept_job_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698