| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 namespace data_reduction_proxy { | 35 namespace data_reduction_proxy { |
| 36 | 36 |
| 37 class DataReductionProxyEventStore; | 37 class DataReductionProxyEventStore; |
| 38 | 38 |
| 39 // The number of days of bandwidth usage statistics that are tracked. | 39 // The number of days of bandwidth usage statistics that are tracked. |
| 40 const unsigned int kNumDaysInHistory = 60; | 40 const unsigned int kNumDaysInHistory = 60; |
| 41 | 41 |
| 42 // The number of days of bandwidth usage statistics that are presented. | 42 // The number of days of bandwidth usage statistics that are presented. |
| 43 const unsigned int kNumDaysInHistorySummary = 30; | 43 const unsigned int kNumDaysInHistorySummary = 30; |
| 44 | 44 |
| 45 COMPILE_ASSERT(kNumDaysInHistorySummary <= kNumDaysInHistory, | 45 static_assert(kNumDaysInHistorySummary <= kNumDaysInHistory, |
| 46 DataReductionProxySettings_summary_too_long); | 46 "kNumDaysInHistorySummary should be no larger than " |
| 47 "kNumDaysInHistory"); |
| 47 | 48 |
| 48 // Values of the UMA DataReductionProxy.StartupState histogram. | 49 // Values of the UMA DataReductionProxy.StartupState histogram. |
| 49 // This enum must remain synchronized with DataReductionProxyStartupState | 50 // This enum must remain synchronized with DataReductionProxyStartupState |
| 50 // in metrics/histograms/histograms.xml. | 51 // in metrics/histograms/histograms.xml. |
| 51 enum ProxyStartupState { | 52 enum ProxyStartupState { |
| 52 PROXY_NOT_AVAILABLE = 0, | 53 PROXY_NOT_AVAILABLE = 0, |
| 53 PROXY_DISABLED, | 54 PROXY_DISABLED, |
| 54 PROXY_ENABLED, | 55 PROXY_ENABLED, |
| 55 PROXY_STARTUP_STATE_COUNT, | 56 PROXY_STARTUP_STATE_COUNT, |
| 56 }; | 57 }; |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 base::ThreadChecker thread_checker_; | 330 base::ThreadChecker thread_checker_; |
| 330 | 331 |
| 331 scoped_ptr<DataReductionProxyParams> params_; | 332 scoped_ptr<DataReductionProxyParams> params_; |
| 332 | 333 |
| 333 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettings); | 334 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettings); |
| 334 }; | 335 }; |
| 335 | 336 |
| 336 } // namespace data_reduction_proxy | 337 } // namespace data_reduction_proxy |
| 337 | 338 |
| 338 #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 |