Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |