| 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 #pragma once | 10 #pragma once |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 // Reads, increments and then sets the specified integer preference. | 310 // Reads, increments and then sets the specified integer preference. |
| 311 void IncrementPrefValue(const char* path); | 311 void IncrementPrefValue(const char* path); |
| 312 | 312 |
| 313 // Reads, increments and then sets the specified long preference that is | 313 // Reads, increments and then sets the specified long preference that is |
| 314 // stored as a string. | 314 // stored as a string. |
| 315 void IncrementLongPrefsValue(const char* path); | 315 void IncrementLongPrefsValue(const char* path); |
| 316 | 316 |
| 317 // Records a renderer process crash. | 317 // Records a renderer process crash. |
| 318 void LogRendererCrash(content::RenderProcessHost* host, | 318 void LogRendererCrash(content::RenderProcessHost* host, |
| 319 base::TerminationStatus status, | 319 base::TerminationStatus status, |
| 320 int exit_code, | 320 int exit_code); |
| 321 bool was_alive); | |
| 322 | 321 |
| 323 // Records a renderer process hang. | 322 // Records a renderer process hang. |
| 324 void LogRendererHang(); | 323 void LogRendererHang(); |
| 325 | 324 |
| 326 // Records that the browser was shut down cleanly. | 325 // Records that the browser was shut down cleanly. |
| 327 void LogCleanShutdown(); | 326 void LogCleanShutdown(); |
| 328 | 327 |
| 329 // Set the value in preferences for the number of bookmarks and folders | 328 // Set the value in preferences for the number of bookmarks and folders |
| 330 // in node. The pref key for the number of bookmarks in num_bookmarks_key and | 329 // in node. The pref key for the number of bookmarks in num_bookmarks_key and |
| 331 // the pref key for number of folders in num_folders_key. | 330 // the pref key for number of folders in num_folders_key. |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 friend bool prerender::IsOmniboxEnabled(Profile* profile); | 481 friend bool prerender::IsOmniboxEnabled(Profile* profile); |
| 483 friend class extensions::ExtensionDownloader; | 482 friend class extensions::ExtensionDownloader; |
| 484 | 483 |
| 485 // Returns true if prefs::kMetricsReportingEnabled is set. | 484 // Returns true if prefs::kMetricsReportingEnabled is set. |
| 486 static bool IsMetricsReportingEnabled(); | 485 static bool IsMetricsReportingEnabled(); |
| 487 | 486 |
| 488 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); | 487 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); |
| 489 }; | 488 }; |
| 490 | 489 |
| 491 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 490 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
| OLD | NEW |