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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 // Saves in the preferences if the browser is running under a debugger. | 255 // Saves in the preferences if the browser is running under a debugger. |
256 // This count is eventually send via UMA logs. | 256 // This count is eventually send via UMA logs. |
257 void RecordBreakpadHasDebugger(bool has_debugger); | 257 void RecordBreakpadHasDebugger(bool has_debugger); |
258 | 258 |
259 #if defined(OS_WIN) | 259 #if defined(OS_WIN) |
260 // Counts (and removes) the browser crash dump attempt signals left behind by | 260 // Counts (and removes) the browser crash dump attempt signals left behind by |
261 // any previous browser processes which generated a crash dump. | 261 // any previous browser processes which generated a crash dump. |
262 void CountBrowserCrashDumpAttempts(); | 262 void CountBrowserCrashDumpAttempts(); |
263 #endif // OS_WIN | 263 #endif // OS_WIN |
264 | 264 |
265 #if defined(OS_CHROMEOS) | |
266 // Records a Chrome OS crash. | |
267 void LogChromeOSCrash(const std::string &crash_type); | |
268 #endif | |
269 | |
270 bool recording_active() const; | 265 bool recording_active() const; |
271 bool reporting_active() const; | 266 bool reporting_active() const; |
272 | 267 |
273 void LogPluginLoadingError(const base::FilePath& plugin_path); | 268 void LogPluginLoadingError(const base::FilePath& plugin_path); |
274 | 269 |
275 // Redundant test to ensure that we are notified of a clean exit. | 270 // Redundant test to ensure that we are notified of a clean exit. |
276 // This value should be true when process has completed shutdown. | 271 // This value should be true when process has completed shutdown. |
277 static bool UmaMetricsProperlyShutdown(); | 272 static bool UmaMetricsProperlyShutdown(); |
278 | 273 |
279 // Registers a field trial name and group to be used to annotate a UMA report | 274 // Registers a field trial name and group to be used to annotate a UMA report |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 | 641 |
647 // Registers/unregisters |observer| to receive MetricsLog notifications | 642 // Registers/unregisters |observer| to receive MetricsLog notifications |
648 // from metrics service. | 643 // from metrics service. |
649 static void AddMetricsServiceObserver(MetricsServiceObserver* observer); | 644 static void AddMetricsServiceObserver(MetricsServiceObserver* observer); |
650 static void RemoveMetricsServiceObserver(MetricsServiceObserver* observer); | 645 static void RemoveMetricsServiceObserver(MetricsServiceObserver* observer); |
651 | 646 |
652 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); | 647 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); |
653 }; | 648 }; |
654 | 649 |
655 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 650 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
OLD | NEW |