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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 bool read_in_progress_; | 66 bool read_in_progress_; |
67 | 67 |
68 scoped_refptr<AuthData> server_auth_; | 68 scoped_refptr<AuthData> server_auth_; |
69 | 69 |
70 // Keep a reference to the url request context to be sure it's not deleted | |
71 // before us. | |
72 scoped_refptr<const URLRequestContext> context_; | |
73 | |
74 base::WeakPtrFactory<URLRequestFtpJob> weak_factory_; | 70 base::WeakPtrFactory<URLRequestFtpJob> weak_factory_; |
75 | 71 |
76 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); | 72 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); |
77 }; | 73 }; |
78 | 74 |
79 } // namespace net | 75 } // namespace net |
80 | 76 |
81 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ | 77 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ |
OLD | NEW |