Chromium Code Reviews| 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 <memory> | 10 #include <memory> |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 71 | 71 |
| 72 scoped_refptr<ResourceBuffer> buffer_; | 72 scoped_refptr<ResourceBuffer> buffer_; |
| 73 ResourceDispatcherHostImpl* rdh_; | 73 ResourceDispatcherHostImpl* rdh_; |
| 74 | 74 |
| 75 // Number of messages we've sent to the renderer that we haven't gotten an | 75 // Number of messages we've sent to the renderer that we haven't gotten an |
| 76 // ACK for. This allows us to avoid having too many messages in flight. | 76 // ACK for. This allows us to avoid having too many messages in flight. |
| 77 int pending_data_count_; | 77 int pending_data_count_; |
| 78 | 78 |
| 79 int allocation_size_; | 79 int allocation_size_; |
| 80 | 80 |
| 81 // Size of received body. Used for comparison with expected content size, | |
| 82 // which is reported to UMA. | |
| 83 int64_t total_read_bytes_; | |
|
mmenke
2017/01/11 20:25:20
Maybe total_read_body_bytes_?
| |
| 84 | |
| 81 bool first_chunk_read_ = false; | 85 bool first_chunk_read_ = false; |
| 82 | 86 |
| 83 bool did_defer_; | 87 bool did_defer_; |
| 84 | 88 |
| 85 bool has_checked_for_sufficient_resources_; | 89 bool has_checked_for_sufficient_resources_; |
| 86 bool sent_received_response_msg_; | 90 bool sent_received_response_msg_; |
| 87 bool sent_data_buffer_msg_; | 91 bool sent_data_buffer_msg_; |
| 88 | 92 |
| 89 std::unique_ptr<InliningHelper> inlining_helper_; | 93 std::unique_ptr<InliningHelper> inlining_helper_; |
| 90 base::TimeTicks response_started_ticks_; | 94 base::TimeTicks response_started_ticks_; |
| 91 | 95 |
| 92 std::unique_ptr<UploadProgressTracker> upload_progress_tracker_; | 96 std::unique_ptr<UploadProgressTracker> upload_progress_tracker_; |
| 93 | 97 |
| 94 int64_t reported_transfer_size_; | 98 int64_t reported_transfer_size_; |
| 95 | 99 |
| 96 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); | 100 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); |
| 97 }; | 101 }; |
| 98 | 102 |
| 99 } // namespace content | 103 } // namespace content |
| 100 | 104 |
| 101 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ | 105 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ |
| OLD | NEW |