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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual void Start() OVERRIDE; | 53 virtual void Start() OVERRIDE; |
54 virtual void Kill() OVERRIDE; | 54 virtual void Kill() OVERRIDE; |
55 virtual LoadState GetLoadState() const OVERRIDE; | 55 virtual LoadState GetLoadState() const OVERRIDE; |
56 virtual bool NeedsAuth() OVERRIDE; | 56 virtual bool NeedsAuth() OVERRIDE; |
57 virtual void GetAuthChallengeInfo( | 57 virtual void GetAuthChallengeInfo( |
58 scoped_refptr<AuthChallengeInfo>* auth_info) OVERRIDE; | 58 scoped_refptr<AuthChallengeInfo>* auth_info) OVERRIDE; |
59 virtual void SetAuth(const AuthCredentials& credentials) OVERRIDE; | 59 virtual void SetAuth(const AuthCredentials& credentials) OVERRIDE; |
60 virtual void CancelAuth() OVERRIDE; | 60 virtual void CancelAuth() OVERRIDE; |
61 | 61 |
62 // TODO(ibrar): Yet to give another look at this function. | 62 // TODO(ibrar): Yet to give another look at this function. |
63 virtual uint64 GetUploadProgress() const OVERRIDE; | 63 virtual UploadProgress GetUploadProgress() const OVERRIDE; |
64 virtual bool ReadRawData(IOBuffer* buf, | 64 virtual bool ReadRawData(IOBuffer* buf, |
65 int buf_size, | 65 int buf_size, |
66 int *bytes_read) OVERRIDE; | 66 int *bytes_read) OVERRIDE; |
67 | 67 |
68 FtpRequestInfo request_info_; | 68 FtpRequestInfo request_info_; |
69 scoped_ptr<FtpTransaction> transaction_; | 69 scoped_ptr<FtpTransaction> transaction_; |
70 | 70 |
71 bool read_in_progress_; | 71 bool read_in_progress_; |
72 | 72 |
73 scoped_refptr<AuthData> server_auth_; | 73 scoped_refptr<AuthData> server_auth_; |
74 | 74 |
75 base::WeakPtrFactory<URLRequestFtpJob> weak_factory_; | 75 base::WeakPtrFactory<URLRequestFtpJob> weak_factory_; |
76 | 76 |
77 FtpTransactionFactory* ftp_transaction_factory_; | 77 FtpTransactionFactory* ftp_transaction_factory_; |
78 FtpAuthCache* ftp_auth_cache_; | 78 FtpAuthCache* ftp_auth_cache_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); | 80 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace net | 83 } // namespace net |
84 | 84 |
85 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ | 85 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ |
OLD | NEW |