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

Side by Side Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h

Issue 794683005: replace COMPILE_ASSERT with static_assert in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting fixup Created 6 years 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
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « components/crash/browser/crash_handler_host_linux.cc ('k') | components/devtools_bridge/socket_tunnel_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698