OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 // TODO(ibrar): Yet to give another look at this function. | 57 // TODO(ibrar): Yet to give another look at this function. |
58 virtual uint64 GetUploadProgress() const OVERRIDE; | 58 virtual uint64 GetUploadProgress() const OVERRIDE; |
59 virtual bool ReadRawData(IOBuffer* buf, | 59 virtual bool ReadRawData(IOBuffer* buf, |
60 int buf_size, | 60 int buf_size, |
61 int *bytes_read) OVERRIDE; | 61 int *bytes_read) OVERRIDE; |
62 | 62 |
63 FtpRequestInfo request_info_; | 63 FtpRequestInfo request_info_; |
64 scoped_ptr<FtpTransaction> transaction_; | 64 scoped_ptr<FtpTransaction> transaction_; |
65 | 65 |
66 OldCompletionCallbackImpl<URLRequestFtpJob> start_callback_; | |
67 OldCompletionCallbackImpl<URLRequestFtpJob> read_callback_; | |
68 | |
69 bool read_in_progress_; | 66 bool read_in_progress_; |
70 | 67 |
71 scoped_refptr<AuthData> server_auth_; | 68 scoped_refptr<AuthData> server_auth_; |
72 | 69 |
73 // Keep a reference to the url request context to be sure it's not deleted | 70 // Keep a reference to the url request context to be sure it's not deleted |
74 // before us. | 71 // before us. |
75 scoped_refptr<const URLRequestContext> context_; | 72 scoped_refptr<const URLRequestContext> context_; |
76 | 73 |
77 ScopedRunnableMethodFactory<URLRequestFtpJob> method_factory_; | 74 base::WeakPtrFactory<URLRequestFtpJob> weak_factory_; |
78 | 75 |
79 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); | 76 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); |
80 }; | 77 }; |
81 | 78 |
82 } // namespace net | 79 } // namespace net |
83 | 80 |
84 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ | 81 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ |
OLD | NEW |