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

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: Merged with latest sync 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 "net/url_request/ftp_protocol_handler.h"
6
7 #include "base/logging.h"
8 #include "net/url_request/url_request_ftp_job.h"
9
10 namespace net {
11
12 FtpProtocolHandler::FtpProtocolHandler(
13 NetworkDelegate* network_delegate,
14 FtpTransactionFactory* ftp_transaction_factory,
15 FtpAuthCache* ftp_auth_cache)
16 : network_delegate_(network_delegate),
17 ftp_transaction_factory_(ftp_transaction_factory),
18 ftp_auth_cache_(ftp_auth_cache) {
19 DCHECK(ftp_transaction_factory_);
20 DCHECK(ftp_auth_cache_);
21 }
22
23 URLRequestJob* FtpProtocolHandler::MaybeCreateJob(
24 URLRequest* request) const {
25 return new URLRequestFtpJob(request,
26 network_delegate_,
27 ftp_transaction_factory_,
28 ftp_auth_cache_);
29 }
30
31 } // 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