OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SETTIN
GS_H_ | 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SETTIN
GS_H_ |
6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SETTIN
GS_H_ | 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SETTIN
GS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 void IncrementLoFiUserRequestsForImages(); | 148 void IncrementLoFiUserRequestsForImages(); |
149 | 149 |
150 // Records UMA for Lo-Fi implicit opt out actions. | 150 // Records UMA for Lo-Fi implicit opt out actions. |
151 void RecordLoFiImplicitOptOutAction( | 151 void RecordLoFiImplicitOptOutAction( |
152 data_reduction_proxy::LoFiImplicitOptOutAction action) const; | 152 data_reduction_proxy::LoFiImplicitOptOutAction action) const; |
153 | 153 |
154 // Returns the time in microseconds that the last update was made to the | 154 // Returns the time in microseconds that the last update was made to the |
155 // daily original and received content lengths. | 155 // daily original and received content lengths. |
156 int64_t GetDataReductionLastUpdateTime(); | 156 int64_t GetDataReductionLastUpdateTime(); |
157 | 157 |
| 158 // Returns the difference between the total original size of all HTTP content |
| 159 // received from the network and the actual size of the HTTP content received. |
| 160 int64_t GetTotalHttpContentLengthSaved(); |
| 161 |
158 // Returns aggregate received and original content lengths over the specified | 162 // Returns aggregate received and original content lengths over the specified |
159 // number of days, as well as the time these stats were last updated. | 163 // number of days, as well as the time these stats were last updated. |
160 void GetContentLengths(unsigned int days, | 164 void GetContentLengths(unsigned int days, |
161 int64_t* original_content_length, | 165 int64_t* original_content_length, |
162 int64_t* received_content_length, | 166 int64_t* received_content_length, |
163 int64_t* last_update_time); | 167 int64_t* last_update_time); |
164 | 168 |
165 // Records that the data reduction proxy is unreachable or not. | 169 // Records that the data reduction proxy is unreachable or not. |
166 void SetUnreachable(bool unreachable); | 170 void SetUnreachable(bool unreachable); |
167 | 171 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 SyntheticFieldTrialRegistrationCallback register_synthetic_field_trial_; | 330 SyntheticFieldTrialRegistrationCallback register_synthetic_field_trial_; |
327 | 331 |
328 base::ThreadChecker thread_checker_; | 332 base::ThreadChecker thread_checker_; |
329 | 333 |
330 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettings); | 334 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettings); |
331 }; | 335 }; |
332 | 336 |
333 } // namespace data_reduction_proxy | 337 } // namespace data_reduction_proxy |
334 | 338 |
335 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SET
TINGS_H_ | 339 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SET
TINGS_H_ |
OLD | NEW |