| 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 <stdint.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 12 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 14 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 15 #include "net/base/auth.h" | 17 #include "net/base/auth.h" |
| 16 #include "net/base/completion_callback.h" | 18 #include "net/base/completion_callback.h" |
| 17 #include "net/base/net_export.h" | 19 #include "net/base/net_export.h" |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 // a callback from the NetworkDelegate. Used as a fail-fast mechanism. | 269 // a callback from the NetworkDelegate. Used as a fail-fast mechanism. |
| 268 // True if we are waiting a callback and | 270 // True if we are waiting a callback and |
| 269 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet, | 271 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet, |
| 270 // to inform the NetworkDelegate that it may not call back. | 272 // to inform the NetworkDelegate that it may not call back. |
| 271 bool awaiting_callback_; | 273 bool awaiting_callback_; |
| 272 | 274 |
| 273 const HttpUserAgentSettings* http_user_agent_settings_; | 275 const HttpUserAgentSettings* http_user_agent_settings_; |
| 274 | 276 |
| 275 URLRequestBackoffManager* backoff_manager_; | 277 URLRequestBackoffManager* backoff_manager_; |
| 276 | 278 |
| 279 // Keeps track of total received bytes over the network from transactions used |
| 280 // by this job that have already been destroyed. |
| 281 int64_t total_received_bytes_from_previous_transactions_; |
| 282 |
| 277 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; | 283 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; |
| 278 | 284 |
| 279 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 285 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
| 280 }; | 286 }; |
| 281 | 287 |
| 282 } // namespace net | 288 } // namespace net |
| 283 | 289 |
| 284 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 290 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| OLD | NEW |