Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1045)

Side by Side Diff: content/browser/loader/async_resource_handler.h

Issue 2624123002: Add UMA histograms to AsyncResourceHandler to track content size. (Closed)
Patch Set: remove not used entry in histogram.xml Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/loader/async_resource_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 scoped_refptr<ResourceBuffer> buffer_; 73 scoped_refptr<ResourceBuffer> buffer_;
74 ResourceDispatcherHostImpl* rdh_; 74 ResourceDispatcherHostImpl* rdh_;
75 75
76 // Number of messages we've sent to the renderer that we haven't gotten an 76 // Number of messages we've sent to the renderer that we haven't gotten an
77 // ACK for. This allows us to avoid having too many messages in flight. 77 // ACK for. This allows us to avoid having too many messages in flight.
78 int pending_data_count_; 78 int pending_data_count_;
79 79
80 int allocation_size_; 80 int allocation_size_;
81 81
82 // Size of received body. Used for comparison with expected content size,
83 // which is reported to UMA.
84 int64_t total_read_body_bytes_;
85
82 bool first_chunk_read_ = false; 86 bool first_chunk_read_ = false;
83 87
84 bool did_defer_; 88 bool did_defer_;
85 89
86 bool has_checked_for_sufficient_resources_; 90 bool has_checked_for_sufficient_resources_;
87 bool sent_received_response_msg_; 91 bool sent_received_response_msg_;
88 bool sent_data_buffer_msg_; 92 bool sent_data_buffer_msg_;
89 93
90 std::unique_ptr<InliningHelper> inlining_helper_; 94 std::unique_ptr<InliningHelper> inlining_helper_;
91 base::TimeTicks response_started_ticks_; 95 base::TimeTicks response_started_ticks_;
92 96
93 std::unique_ptr<UploadProgressTracker> upload_progress_tracker_; 97 std::unique_ptr<UploadProgressTracker> upload_progress_tracker_;
94 98
95 int64_t reported_transfer_size_; 99 int64_t reported_transfer_size_;
96 100
97 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); 101 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler);
98 }; 102 };
99 103
100 } // namespace content 104 } // namespace content
101 105
102 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ 106 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/loader/async_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698