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

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 job factories in off_the_record 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
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 #include "net/url_request/url_request_ftp_job.h"
mmenke 2012/06/27 17:20:07 Include "base/logging.h" for the DCHECKs.
shalev 2012/06/27 20:10:43 Done.
7
8 namespace net {
9
10 class NetworkDelegate;
11 class FtpTransactionFactory;
12 class FtpAuthCache;
13 class URLRequest;
mmenke 2012/06/27 17:20:07 These aren't needed, since they're in the header.
shalev 2012/06/27 20:10:43 Done.
14
15 FtpProtocolHandler::FtpProtocolHandler(
16 NetworkDelegate* network_delegate,
17 FtpTransactionFactory* ftp_transaction_factory,
18 FtpAuthCache* ftp_auth_cache)
19 : network_delegate_(network_delegate),
20 ftp_transaction_factory_(ftp_transaction_factory),
21 ftp_auth_cache_(ftp_auth_cache) {
22 DCHECK(ftp_transaction_factory_);
23 DCHECK(ftp_auth_cache_);
24 }
25
26 URLRequestJob* FtpProtocolHandler::MaybeCreateJob(
27 URLRequest* request) const {
28 return new URLRequestFtpJob(request,
29 network_delegate_,
30 ftp_transaction_factory_,
31 ftp_auth_cache_);
32 }
33
34 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698