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 // This class simulates what wininet does when a dns lookup fails. | 4 // This class simulates what wininet does when a dns lookup fails. |
5 | 5 |
6 #ifndef CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_ | 6 #ifndef CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_ |
7 #define CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_ | 7 #define CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_ |
8 | 8 |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "chrome/common/ref_counted_util.h" | 10 #include "chrome/common/ref_counted_util.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // the host. | 120 // the host. |
121 bool is_pending_; | 121 bool is_pending_; |
122 | 122 |
123 // Contains the request status code, which is eventually passed to the http | 123 // Contains the request status code, which is eventually passed to the http |
124 // stack when we receive a Read request for a completed job. | 124 // stack when we receive a Read request for a completed job. |
125 net::URLRequestStatus request_status_; | 125 net::URLRequestStatus request_status_; |
126 | 126 |
127 // Contains the ip address and port of the destination host. | 127 // Contains the ip address and port of the destination host. |
128 net::HostPortPair socket_address_; | 128 net::HostPortPair socket_address_; |
129 | 129 |
| 130 // Size of the upload data appended to the request. |
| 131 uint64 upload_size_; |
| 132 |
130 base::WeakPtrFactory<URLRequestAutomationJob> weak_factory_; | 133 base::WeakPtrFactory<URLRequestAutomationJob> weak_factory_; |
131 | 134 |
132 DISALLOW_COPY_AND_ASSIGN(URLRequestAutomationJob); | 135 DISALLOW_COPY_AND_ASSIGN(URLRequestAutomationJob); |
133 }; | 136 }; |
134 | 137 |
135 #endif // CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_ | 138 #endif // CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_ |
OLD | NEW |