| 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> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 scoped_refptr<ResourceBuffer> buffer_; | 76 scoped_refptr<ResourceBuffer> buffer_; |
| 77 ResourceDispatcherHostImpl* rdh_; | 77 ResourceDispatcherHostImpl* rdh_; |
| 78 | 78 |
| 79 // Number of messages we've sent to the renderer that we haven't gotten an | 79 // Number of messages we've sent to the renderer that we haven't gotten an |
| 80 // ACK for. This allows us to avoid having too many messages in flight. | 80 // ACK for. This allows us to avoid having too many messages in flight. |
| 81 int pending_data_count_; | 81 int pending_data_count_; |
| 82 | 82 |
| 83 int allocation_size_; | 83 int allocation_size_; |
| 84 | 84 |
| 85 bool first_chunk_read_ = false; |
| 86 |
| 85 bool did_defer_; | 87 bool did_defer_; |
| 86 | 88 |
| 87 bool has_checked_for_sufficient_resources_; | 89 bool has_checked_for_sufficient_resources_; |
| 88 bool sent_received_response_msg_; | 90 bool sent_received_response_msg_; |
| 89 bool sent_data_buffer_msg_; | 91 bool sent_data_buffer_msg_; |
| 90 | 92 |
| 91 std::unique_ptr<InliningHelper> inlining_helper_; | 93 std::unique_ptr<InliningHelper> inlining_helper_; |
| 92 base::TimeTicks response_started_ticks_; | 94 base::TimeTicks response_started_ticks_; |
| 93 | 95 |
| 94 uint64_t last_upload_position_; | 96 uint64_t last_upload_position_; |
| 95 bool waiting_for_upload_progress_ack_; | 97 bool waiting_for_upload_progress_ack_; |
| 96 base::TimeTicks last_upload_ticks_; | 98 base::TimeTicks last_upload_ticks_; |
| 97 base::RepeatingTimer progress_timer_; | 99 base::RepeatingTimer progress_timer_; |
| 98 | 100 |
| 99 int64_t reported_transfer_size_; | 101 int64_t reported_transfer_size_; |
| 100 int64_t reported_encoded_body_length_; | 102 int64_t reported_encoded_body_length_; |
| 101 | 103 |
| 102 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); | 104 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); |
| 103 }; | 105 }; |
| 104 | 106 |
| 105 } // namespace content | 107 } // namespace content |
| 106 | 108 |
| 107 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ | 109 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ |
| OLD | NEW |