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 <memory> | 10 #include <memory> |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 // Timer to poll the progress of uploading for POST and PUT requests. | 339 // Timer to poll the progress of uploading for POST and PUT requests. |
340 // When crbug.com/119629 is fixed, scoped_ptr is not necessary here. | 340 // When crbug.com/119629 is fixed, scoped_ptr is not necessary here. |
341 std::unique_ptr<base::RepeatingTimer> upload_progress_checker_timer_; | 341 std::unique_ptr<base::RepeatingTimer> upload_progress_checker_timer_; |
342 // Number of bytes sent so far. | 342 // Number of bytes sent so far. |
343 int64_t current_upload_bytes_; | 343 int64_t current_upload_bytes_; |
344 // Number of bytes received so far. | 344 // Number of bytes received so far. |
345 int64_t current_response_bytes_; | 345 int64_t current_response_bytes_; |
346 // Total expected bytes to receive (-1 if it cannot be determined). | 346 // Total expected bytes to receive (-1 if it cannot be determined). |
347 int64_t total_response_bytes_; | 347 int64_t total_response_bytes_; |
348 | 348 |
349 static base::LazyInstance<Registry> g_registry; | 349 static base::LazyInstance<Registry>::DestructorAtExit g_registry; |
350 | 350 |
351 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore); | 351 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore); |
352 }; | 352 }; |
353 | 353 |
354 } // namespace net | 354 } // namespace net |
355 | 355 |
356 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_ | 356 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_ |
OLD | NEW |