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