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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 static void SetExecutionPhase(ExecutionPhase execution_phase); | 194 static void SetExecutionPhase(ExecutionPhase execution_phase); |
195 | 195 |
196 // Saves in the preferences if the crash report registration was successful. | 196 // Saves in the preferences if the crash report registration was successful. |
197 // This count is eventually send via UMA logs. | 197 // This count is eventually send via UMA logs. |
198 void RecordBreakpadRegistration(bool success); | 198 void RecordBreakpadRegistration(bool success); |
199 | 199 |
200 // Saves in the preferences if the browser is running under a debugger. | 200 // Saves in the preferences if the browser is running under a debugger. |
201 // This count is eventually send via UMA logs. | 201 // This count is eventually send via UMA logs. |
202 void RecordBreakpadHasDebugger(bool has_debugger); | 202 void RecordBreakpadHasDebugger(bool has_debugger); |
203 | 203 |
204 #if defined(OS_CHROMEOS) | |
205 // Records a Chrome OS crash. | |
206 void LogChromeOSCrash(const std::string &crash_type); | |
207 #endif | |
208 | |
209 bool recording_active() const; | 204 bool recording_active() const; |
210 bool reporting_active() const; | 205 bool reporting_active() const; |
211 | 206 |
212 void LogPluginLoadingError(const base::FilePath& plugin_path); | 207 void LogPluginLoadingError(const base::FilePath& plugin_path); |
213 | 208 |
214 // Redundant test to ensure that we are notified of a clean exit. | 209 // Redundant test to ensure that we are notified of a clean exit. |
215 // This value should be true when process has completed shutdown. | 210 // This value should be true when process has completed shutdown. |
216 static bool UmaMetricsProperlyShutdown(); | 211 static bool UmaMetricsProperlyShutdown(); |
217 | 212 |
218 // Registers a field trial name and group to be used to annotate a UMA report | 213 // Registers a field trial name and group to be used to annotate a UMA report |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, IsPluginProcess); | 515 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, IsPluginProcess); |
521 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, MetricsServiceObserver); | 516 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, MetricsServiceObserver); |
522 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, | 517 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, |
523 PermutedEntropyCacheClearedWhenLowEntropyReset); | 518 PermutedEntropyCacheClearedWhenLowEntropyReset); |
524 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, RegisterSyntheticTrial); | 519 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, RegisterSyntheticTrial); |
525 | 520 |
526 DISALLOW_COPY_AND_ASSIGN(MetricsService); | 521 DISALLOW_COPY_AND_ASSIGN(MetricsService); |
527 }; | 522 }; |
528 | 523 |
529 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 524 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
OLD | NEW |