| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 virtual void Kill(); | 41 virtual void Kill(); |
| 42 virtual LoadState GetLoadState() const; | 42 virtual LoadState GetLoadState() const; |
| 43 virtual bool NeedsAuth(); | 43 virtual bool NeedsAuth(); |
| 44 virtual void GetAuthChallengeInfo( | 44 virtual void GetAuthChallengeInfo( |
| 45 scoped_refptr<AuthChallengeInfo>* auth_info); | 45 scoped_refptr<AuthChallengeInfo>* auth_info); |
| 46 virtual void SetAuth(const string16& username, | 46 virtual void SetAuth(const string16& username, |
| 47 const string16& password); | 47 const string16& password); |
| 48 virtual void CancelAuth(); | 48 virtual void CancelAuth(); |
| 49 | 49 |
| 50 // TODO(ibrar): Yet to give another look at this function. | 50 // TODO(ibrar): Yet to give another look at this function. |
| 51 virtual uint64 GetUploadProgress() const { return 0; } | 51 virtual uint64 GetUploadProgress() const; |
| 52 virtual bool ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read); | 52 virtual bool ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read); |
| 53 | 53 |
| 54 void StartTransaction(); | 54 void StartTransaction(); |
| 55 | 55 |
| 56 void OnStartCompleted(int result); | 56 void OnStartCompleted(int result); |
| 57 void OnReadCompleted(int result); | 57 void OnReadCompleted(int result); |
| 58 | 58 |
| 59 void RestartTransactionWithAuth(); | 59 void RestartTransactionWithAuth(); |
| 60 | 60 |
| 61 void LogFtpServerType(char server_type); | 61 void LogFtpServerType(char server_type); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 75 scoped_refptr<URLRequestContext> context_; | 75 scoped_refptr<URLRequestContext> context_; |
| 76 | 76 |
| 77 ScopedRunnableMethodFactory<URLRequestFtpJob> method_factory_; | 77 ScopedRunnableMethodFactory<URLRequestFtpJob> method_factory_; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); | 79 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace net | 82 } // namespace net |
| 83 | 83 |
| 84 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ | 84 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ |
| OLD | NEW |