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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 void IncrementLongPrefsValue(const char* path); | 360 void IncrementLongPrefsValue(const char* path); |
361 | 361 |
362 // Records a renderer process crash. | 362 // Records a renderer process crash. |
363 void LogRendererCrash(content::RenderProcessHost* host, | 363 void LogRendererCrash(content::RenderProcessHost* host, |
364 base::TerminationStatus status, | 364 base::TerminationStatus status, |
365 int exit_code); | 365 int exit_code); |
366 | 366 |
367 // Records a renderer process hang. | 367 // Records a renderer process hang. |
368 void LogRendererHang(); | 368 void LogRendererHang(); |
369 | 369 |
370 // Records that the browser was shut down cleanly. | 370 // Records that the browser was shutdown cleanly, and the value of |
371 void LogCleanShutdown(); | 371 // |kStatabilitySessionEndCompleted|. |
| 372 void RecordStabilitySessionEndCompleted(bool value); |
372 | 373 |
373 // Returns reference to ChildProcessStats corresponding to |data|. | 374 // Returns reference to ChildProcessStats corresponding to |data|. |
374 ChildProcessStats& GetChildProcessStats( | 375 ChildProcessStats& GetChildProcessStats( |
375 const content::ChildProcessData& data); | 376 const content::ChildProcessData& data); |
376 | 377 |
377 // Saves plugin-related updates from the in-object buffer to Local State | 378 // Saves plugin-related updates from the in-object buffer to Local State |
378 // for retrieval next time we send a Profile log (generally next launch). | 379 // for retrieval next time we send a Profile log (generally next launch). |
379 void RecordPluginChanges(PrefService* pref); | 380 void RecordPluginChanges(PrefService* pref); |
380 | 381 |
381 // Records state that should be periodically saved, like uptime and | 382 // Records state that should be periodically saved, like uptime and |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 friend class extensions::ExtensionDownloader; | 511 friend class extensions::ExtensionDownloader; |
511 friend class extensions::ManifestFetchData; | 512 friend class extensions::ManifestFetchData; |
512 | 513 |
513 // Returns true if prefs::kMetricsReportingEnabled is set. | 514 // Returns true if prefs::kMetricsReportingEnabled is set. |
514 static bool IsMetricsReportingEnabled(); | 515 static bool IsMetricsReportingEnabled(); |
515 | 516 |
516 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); | 517 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); |
517 }; | 518 }; |
518 | 519 |
519 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 520 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
OLD | NEW |