| 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_FETCHER_CORE_H_ | 5 #ifndef NET_URL_REQUEST_URL_FETCHER_CORE_H_ |
| 6 #define NET_URL_REQUEST_URL_FETCHER_CORE_H_ | 6 #define NET_URL_REQUEST_URL_FETCHER_CORE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 base::TimeDelta backoff_delay_; | 319 base::TimeDelta backoff_delay_; |
| 320 | 320 |
| 321 // The number of retries that have been attempted due to ERR_NETWORK_CHANGED. | 321 // The number of retries that have been attempted due to ERR_NETWORK_CHANGED. |
| 322 int num_retries_on_network_changes_; | 322 int num_retries_on_network_changes_; |
| 323 // Maximum retries allowed when the request fails with ERR_NETWORK_CHANGED. | 323 // Maximum retries allowed when the request fails with ERR_NETWORK_CHANGED. |
| 324 // 0 by default. | 324 // 0 by default. |
| 325 int max_retries_on_network_changes_; | 325 int max_retries_on_network_changes_; |
| 326 | 326 |
| 327 // Timer to poll the progress of uploading for POST and PUT requests. | 327 // Timer to poll the progress of uploading for POST and PUT requests. |
| 328 // When crbug.com/119629 is fixed, scoped_ptr is not necessary here. | 328 // When crbug.com/119629 is fixed, scoped_ptr is not necessary here. |
| 329 scoped_ptr<base::RepeatingTimer<URLFetcherCore> > | 329 scoped_ptr<base::RepeatingTimer> upload_progress_checker_timer_; |
| 330 upload_progress_checker_timer_; | |
| 331 // Number of bytes sent so far. | 330 // Number of bytes sent so far. |
| 332 int64 current_upload_bytes_; | 331 int64 current_upload_bytes_; |
| 333 // Number of bytes received so far. | 332 // Number of bytes received so far. |
| 334 int64 current_response_bytes_; | 333 int64 current_response_bytes_; |
| 335 // Total expected bytes to receive (-1 if it cannot be determined). | 334 // Total expected bytes to receive (-1 if it cannot be determined). |
| 336 int64 total_response_bytes_; | 335 int64 total_response_bytes_; |
| 337 | 336 |
| 338 // TODO(willchan): Get rid of this after debugging crbug.com/90971. | 337 // TODO(willchan): Get rid of this after debugging crbug.com/90971. |
| 339 base::debug::StackTrace stack_trace_; | 338 base::debug::StackTrace stack_trace_; |
| 340 | 339 |
| 341 static base::LazyInstance<Registry> g_registry; | 340 static base::LazyInstance<Registry> g_registry; |
| 342 | 341 |
| 343 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore); | 342 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore); |
| 344 }; | 343 }; |
| 345 | 344 |
| 346 } // namespace net | 345 } // namespace net |
| 347 | 346 |
| 348 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_ | 347 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_ |
| OLD | NEW |