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_HTTP_JOB_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 260 |
261 // Flag used to verify that |this| is not deleted while we are awaiting | 261 // Flag used to verify that |this| is not deleted while we are awaiting |
262 // a callback from the NetworkDelegate. Used as a fail-fast mechanism. | 262 // a callback from the NetworkDelegate. Used as a fail-fast mechanism. |
263 // True if we are waiting a callback and | 263 // True if we are waiting a callback and |
264 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet, | 264 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet, |
265 // to inform the NetworkDelegate that it may not call back. | 265 // to inform the NetworkDelegate that it may not call back. |
266 bool awaiting_callback_; | 266 bool awaiting_callback_; |
267 | 267 |
268 const HttpUserAgentSettings* http_user_agent_settings_; | 268 const HttpUserAgentSettings* http_user_agent_settings_; |
269 | 269 |
| 270 // TODO(battre) Remove this when crbug.com/289715 is fixed. |
| 271 bool destructor_was_called_; |
| 272 |
| 273 // TODO(battre) Remove this when crbug.com/289715 is fixed. |
| 274 enum TransactionState { |
| 275 TRANSACTION_WAS_NOT_INITIALIZED, |
| 276 TRANSACTION_WAS_INITIALIZED, |
| 277 TRANSACTION_WAS_DESTROYED |
| 278 }; |
| 279 TransactionState transaction_state_; |
| 280 |
270 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; | 281 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; |
271 | 282 |
272 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 283 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
273 }; | 284 }; |
274 | 285 |
275 } // namespace net | 286 } // namespace net |
276 | 287 |
277 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 288 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
OLD | NEW |