| OLD | NEW |
| 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 // This file defines a service that collects information about the user | 5 // This file defines a service that collects information about the user |
| 6 // experience in order to help improve future versions of the app. | 6 // experience in order to help improve future versions of the app. |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 8 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
| 9 #define CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 9 #define CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
| 10 | 10 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 // This count is eventually send via UMA logs. | 200 // This count is eventually send via UMA logs. |
| 201 void RecordBreakpadRegistration(bool success); | 201 void RecordBreakpadRegistration(bool success); |
| 202 | 202 |
| 203 // Saves in the preferences if the browser is running under a debugger. | 203 // Saves in the preferences if the browser is running under a debugger. |
| 204 // This count is eventually send via UMA logs. | 204 // This count is eventually send via UMA logs. |
| 205 void RecordBreakpadHasDebugger(bool has_debugger); | 205 void RecordBreakpadHasDebugger(bool has_debugger); |
| 206 | 206 |
| 207 bool recording_active() const; | 207 bool recording_active() const; |
| 208 bool reporting_active() const; | 208 bool reporting_active() const; |
| 209 | 209 |
| 210 // TODO(blundell): Move this to ChromeMetricsServiceClient. |
| 210 void LogPluginLoadingError(const base::FilePath& plugin_path); | 211 void LogPluginLoadingError(const base::FilePath& plugin_path); |
| 211 | 212 |
| 212 // Redundant test to ensure that we are notified of a clean exit. | 213 // Redundant test to ensure that we are notified of a clean exit. |
| 213 // This value should be true when process has completed shutdown. | 214 // This value should be true when process has completed shutdown. |
| 214 static bool UmaMetricsProperlyShutdown(); | 215 static bool UmaMetricsProperlyShutdown(); |
| 215 | 216 |
| 216 // Registers a field trial name and group to be used to annotate a UMA report | 217 // Registers a field trial name and group to be used to annotate a UMA report |
| 217 // with a particular Chrome configuration state. A UMA report will be | 218 // with a particular Chrome configuration state. A UMA report will be |
| 218 // annotated with this trial group if and only if all events in the report | 219 // annotated with this trial group if and only if all events in the report |
| 219 // were created after the trial is registered. Only one group name may be | 220 // were created after the trial is registered. Only one group name may be |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, IsPluginProcess); | 514 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, IsPluginProcess); |
| 514 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, MetricsServiceObserver); | 515 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, MetricsServiceObserver); |
| 515 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, | 516 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, |
| 516 PermutedEntropyCacheClearedWhenLowEntropyReset); | 517 PermutedEntropyCacheClearedWhenLowEntropyReset); |
| 517 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, RegisterSyntheticTrial); | 518 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, RegisterSyntheticTrial); |
| 518 | 519 |
| 519 DISALLOW_COPY_AND_ASSIGN(MetricsService); | 520 DISALLOW_COPY_AND_ASSIGN(MetricsService); |
| 520 }; | 521 }; |
| 521 | 522 |
| 522 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 523 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
| OLD | NEW |