| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // Overridden from URLRequestJob: | 64 // Overridden from URLRequestJob: |
| 65 LoadState GetLoadState() const override; | 65 LoadState GetLoadState() const override; |
| 66 bool NeedsAuth() override; | 66 bool NeedsAuth() override; |
| 67 void GetAuthChallengeInfo( | 67 void GetAuthChallengeInfo( |
| 68 scoped_refptr<AuthChallengeInfo>* auth_info) override; | 68 scoped_refptr<AuthChallengeInfo>* auth_info) override; |
| 69 void SetAuth(const AuthCredentials& credentials) override; | 69 void SetAuth(const AuthCredentials& credentials) override; |
| 70 void CancelAuth() override; | 70 void CancelAuth() override; |
| 71 | 71 |
| 72 // TODO(ibrar): Yet to give another look at this function. | 72 // TODO(ibrar): Yet to give another look at this function. |
| 73 UploadProgress GetUploadProgress() const override; | 73 UploadProgress GetUploadProgress() const override; |
| 74 bool ReadRawData(IOBuffer* buf, int buf_size, int* bytes_read) override; | 74 int ReadRawData(IOBuffer* buf, int buf_size) override; |
| 75 | 75 |
| 76 void HandleAuthNeededResponse(); | 76 void HandleAuthNeededResponse(); |
| 77 | 77 |
| 78 RequestPriority priority_; | 78 RequestPriority priority_; |
| 79 | 79 |
| 80 ProxyService* proxy_service_; | 80 ProxyService* proxy_service_; |
| 81 ProxyInfo proxy_info_; | 81 ProxyInfo proxy_info_; |
| 82 ProxyService::PacRequest* pac_request_; | 82 ProxyService::PacRequest* pac_request_; |
| 83 | 83 |
| 84 FtpRequestInfo ftp_request_info_; | 84 FtpRequestInfo ftp_request_info_; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 96 FtpAuthCache* ftp_auth_cache_; | 96 FtpAuthCache* ftp_auth_cache_; |
| 97 | 97 |
| 98 base::WeakPtrFactory<URLRequestFtpJob> weak_factory_; | 98 base::WeakPtrFactory<URLRequestFtpJob> weak_factory_; |
| 99 | 99 |
| 100 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); | 100 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace net | 103 } // namespace net |
| 104 | 104 |
| 105 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ | 105 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ |
| OLD | NEW |