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

Side by Side Diff: net/url_request/ftp_protocol_handler.cc

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: Fixed ftp_auth_cache Created 8 years, 5 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
« no previous file with comments | « net/url_request/ftp_protocol_handler.h ('k') | net/url_request/url_request_ftp_job.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/logging.h"
6 #include "net/url_request/ftp_protocol_handler.h"
mmenke 2012/06/29 20:49:59 This should go first, with a blank line below it.
shalev 2012/07/03 19:41:46 Done.
7 #include "net/url_request/url_request_ftp_job.h"
8
9 namespace net {
10
11 FtpProtocolHandler::FtpProtocolHandler(
12 NetworkDelegate* network_delegate,
13 FtpTransactionFactory* ftp_transaction_factory,
14 FtpAuthCache* ftp_auth_cache)
15 : network_delegate_(network_delegate),
16 ftp_transaction_factory_(ftp_transaction_factory),
17 ftp_auth_cache_(ftp_auth_cache) {
18 DCHECK(ftp_transaction_factory_);
19 DCHECK(ftp_auth_cache_);
20 }
21
22 URLRequestJob* FtpProtocolHandler::MaybeCreateJob(
23 URLRequest* request) const {
24 return new URLRequestFtpJob(request,
25 network_delegate_,
26 ftp_transaction_factory_,
27 ftp_auth_cache_);
28 }
29
30 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/ftp_protocol_handler.h ('k') | net/url_request/url_request_ftp_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698