OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ |
6 #define NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 // provides an implementation for FTP. | 24 // provides an implementation for FTP. |
25 class URLRequestFtpJob : public URLRequestJob { | 25 class URLRequestFtpJob : public URLRequestJob { |
26 public: | 26 public: |
27 URLRequestFtpJob(URLRequest* request, | 27 URLRequestFtpJob(URLRequest* request, |
28 NetworkDelegate* network_delegate, | 28 NetworkDelegate* network_delegate, |
29 FtpTransactionFactory* ftp_transaction_factory, | 29 FtpTransactionFactory* ftp_transaction_factory, |
30 FtpAuthCache* ftp_auth_cache); | 30 FtpAuthCache* ftp_auth_cache); |
31 | 31 |
32 // TODO(shalev): get rid of this function in favor of FtpProtocolHandler. | 32 // TODO(shalev): get rid of this function in favor of FtpProtocolHandler. |
33 static URLRequestJob* Factory(URLRequest* request, | 33 static URLRequestJob* Factory(URLRequest* request, |
| 34 NetworkDelegate* network_delegate, |
34 const std::string& scheme); | 35 const std::string& scheme); |
35 | 36 |
36 // Overridden from URLRequestJob: | 37 // Overridden from URLRequestJob: |
37 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE; | 38 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE; |
38 virtual HostPortPair GetSocketAddress() const OVERRIDE; | 39 virtual HostPortPair GetSocketAddress() const OVERRIDE; |
39 | 40 |
40 private: | 41 private: |
41 virtual ~URLRequestFtpJob(); | 42 virtual ~URLRequestFtpJob(); |
42 | 43 |
43 void StartTransaction(); | 44 void StartTransaction(); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 77 |
77 FtpTransactionFactory* ftp_transaction_factory_; | 78 FtpTransactionFactory* ftp_transaction_factory_; |
78 FtpAuthCache* ftp_auth_cache_; | 79 FtpAuthCache* ftp_auth_cache_; |
79 | 80 |
80 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); | 81 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); |
81 }; | 82 }; |
82 | 83 |
83 } // namespace net | 84 } // namespace net |
84 | 85 |
85 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ | 86 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ |
OLD | NEW |