| 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 CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 12 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 11 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
| 12 #include "content/browser/loader/resource_handler.h" | 15 #include "content/browser/loader/resource_handler.h" |
| 13 #include "content/browser/loader/resource_message_delegate.h" | 16 #include "content/browser/loader/resource_message_delegate.h" |
| 14 #include "url/gurl.h" | 17 #include "url/gurl.h" |
| 15 | 18 |
| 16 namespace net { | 19 namespace net { |
| 17 class URLRequest; | 20 class URLRequest; |
| 18 } | 21 } |
| 19 | 22 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 int pending_data_count_; | 74 int pending_data_count_; |
| 72 | 75 |
| 73 int allocation_size_; | 76 int allocation_size_; |
| 74 | 77 |
| 75 bool did_defer_; | 78 bool did_defer_; |
| 76 | 79 |
| 77 bool has_checked_for_sufficient_resources_; | 80 bool has_checked_for_sufficient_resources_; |
| 78 bool sent_received_response_msg_; | 81 bool sent_received_response_msg_; |
| 79 bool sent_first_data_msg_; | 82 bool sent_first_data_msg_; |
| 80 | 83 |
| 81 uint64 last_upload_position_; | 84 uint64_t last_upload_position_; |
| 82 bool waiting_for_upload_progress_ack_; | 85 bool waiting_for_upload_progress_ack_; |
| 83 base::TimeTicks last_upload_ticks_; | 86 base::TimeTicks last_upload_ticks_; |
| 84 base::RepeatingTimer progress_timer_; | 87 base::RepeatingTimer progress_timer_; |
| 85 | 88 |
| 86 int64_t reported_transfer_size_; | 89 int64_t reported_transfer_size_; |
| 87 | 90 |
| 88 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); | 91 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); |
| 89 }; | 92 }; |
| 90 | 93 |
| 91 } // namespace content | 94 } // namespace content |
| 92 | 95 |
| 93 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ | 96 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ |
| OLD | NEW |