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