| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 void OnStartCompletedAsync(int result); | 62 void OnStartCompletedAsync(int result); |
| 63 void OnReadCompleted(int result); | 63 void OnReadCompleted(int result); |
| 64 | 64 |
| 65 void RestartTransactionWithAuth(); | 65 void RestartTransactionWithAuth(); |
| 66 | 66 |
| 67 void LogFtpServerType(char server_type); | 67 void LogFtpServerType(char server_type); |
| 68 | 68 |
| 69 // Overridden from URLRequestJob: | 69 // Overridden from URLRequestJob: |
| 70 virtual LoadState GetLoadState() const OVERRIDE; | 70 virtual LoadState GetLoadState() const OVERRIDE; |
| 71 virtual bool NeedsAuth() OVERRIDE; | 71 virtual bool NeedsAuth() OVERRIDE; |
| 72 virtual bool HasAuth() const OVERRIDE; |
| 72 virtual void GetAuthChallengeInfo( | 73 virtual void GetAuthChallengeInfo( |
| 73 scoped_refptr<AuthChallengeInfo>* auth_info) OVERRIDE; | 74 scoped_refptr<AuthChallengeInfo>* auth_info) OVERRIDE; |
| 74 virtual void SetAuth(const AuthCredentials& credentials) OVERRIDE; | 75 virtual void SetAuth(const AuthCredentials& credentials) OVERRIDE; |
| 75 virtual void CancelAuth() OVERRIDE; | 76 virtual void CancelAuth() OVERRIDE; |
| 76 | 77 |
| 77 // TODO(ibrar): Yet to give another look at this function. | 78 // TODO(ibrar): Yet to give another look at this function. |
| 78 virtual UploadProgress GetUploadProgress() const OVERRIDE; | 79 virtual UploadProgress GetUploadProgress() const OVERRIDE; |
| 79 virtual bool ReadRawData(IOBuffer* buf, | 80 virtual bool ReadRawData(IOBuffer* buf, |
| 80 int buf_size, | 81 int buf_size, |
| 81 int *bytes_read) OVERRIDE; | 82 int *bytes_read) OVERRIDE; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 100 | 101 |
| 101 FtpTransactionFactory* ftp_transaction_factory_; | 102 FtpTransactionFactory* ftp_transaction_factory_; |
| 102 FtpAuthCache* ftp_auth_cache_; | 103 FtpAuthCache* ftp_auth_cache_; |
| 103 | 104 |
| 104 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); | 105 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 } // namespace net | 108 } // namespace net |
| 108 | 109 |
| 109 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ | 110 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ |
| OLD | NEW |