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 CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_ | 5 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_ |
6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_ | 6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 friend class ChromeRenderMessageFilter; | 57 friend class ChromeRenderMessageFilter; |
58 friend class ::CrashesDOMHandler; | 58 friend class ::CrashesDOMHandler; |
59 friend class DataReductionProxyChromeSettings; | 59 friend class DataReductionProxyChromeSettings; |
60 friend class extensions::MetricsPrivateGetIsCrashReportingEnabledFunction; | 60 friend class extensions::MetricsPrivateGetIsCrashReportingEnabledFunction; |
61 friend class ::FlashDOMHandler; | 61 friend class ::FlashDOMHandler; |
62 friend class system_logs::ChromeInternalLogSource; | 62 friend class system_logs::ChromeInternalLogSource; |
63 friend class UmaSessionStats; | 63 friend class UmaSessionStats; |
64 friend class options::BrowserOptionsHandler; | 64 friend class options::BrowserOptionsHandler; |
65 friend void InitiateMetricsReportingChange( | 65 friend void InitiateMetricsReportingChange( |
66 bool, const OnMetricsReportingCallbackType&); | 66 bool, const OnMetricsReportingCallbackType&); |
| 67 friend class MetricsServicesManager; |
67 | 68 |
68 FRIEND_TEST_ALL_PREFIXES(ChromeMetricsServiceAccessorTest, | 69 FRIEND_TEST_ALL_PREFIXES(ChromeMetricsServiceAccessorTest, |
69 MetricsReportingEnabled); | 70 MetricsReportingEnabled); |
70 FRIEND_TEST_ALL_PREFIXES(ChromeMetricsServiceAccessorTest, | 71 FRIEND_TEST_ALL_PREFIXES(ChromeMetricsServiceAccessorTest, |
71 CrashReportingEnabled); | 72 CrashReportingEnabled); |
72 | 73 |
73 // Returns true if prefs::kMetricsReportingEnabled is set. | 74 // Returns true if prefs::kMetricsReportingEnabled is set. |
74 // TODO(asvitkine): Consolidate the method in MetricsStateManager. | 75 // TODO(asvitkine): Consolidate the method in MetricsStateManager. |
75 // TODO(asvitkine): This function does not report the correct value on | 76 // TODO(asvitkine): This function does not report the correct value on |
76 // Android and ChromeOS, see http://crbug.com/362192. | 77 // Android and ChromeOS, see http://crbug.com/362192. |
(...skipping 17 matching lines...) Expand all Loading... |
94 // Same as RegisterSyntheticFieldTrial above, but takes a hash for the trial | 95 // Same as RegisterSyntheticFieldTrial above, but takes a hash for the trial |
95 // name, rather than computing it from the string. | 96 // name, rather than computing it from the string. |
96 static bool RegisterSyntheticFieldTrialWithNameHash( | 97 static bool RegisterSyntheticFieldTrialWithNameHash( |
97 uint32_t trial_name_hash, | 98 uint32_t trial_name_hash, |
98 const std::string& group_name); | 99 const std::string& group_name); |
99 | 100 |
100 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeMetricsServiceAccessor); | 101 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeMetricsServiceAccessor); |
101 }; | 102 }; |
102 | 103 |
103 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_ | 104 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_ |
OLD | NEW |