| 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  264   // Reads, increments and then sets the specified integer preference. |  264   // Reads, increments and then sets the specified integer preference. | 
|  265   void IncrementPrefValue(const char* path); |  265   void IncrementPrefValue(const char* path); | 
|  266  |  266  | 
|  267   // Reads, increments and then sets the specified long preference that is |  267   // Reads, increments and then sets the specified long preference that is | 
|  268   // stored as a string. |  268   // stored as a string. | 
|  269   void IncrementLongPrefsValue(const char* path); |  269   void IncrementLongPrefsValue(const char* path); | 
|  270  |  270  | 
|  271   // Records a renderer process crash. |  271   // Records a renderer process crash. | 
|  272   void LogRendererCrash(content::RenderProcessHost* host, |  272   void LogRendererCrash(content::RenderProcessHost* host, | 
|  273                         base::TerminationStatus status, |  273                         base::TerminationStatus status, | 
|  274                         bool was_alive); |  274                         bool was_alive, | 
 |  275                         base::ProcessHandle handle); | 
|  275  |  276  | 
|  276   // Records a renderer process hang. |  277   // Records a renderer process hang. | 
|  277   void LogRendererHang(); |  278   void LogRendererHang(); | 
|  278  |  279  | 
|  279   // Records that the browser was shut down cleanly. |  280   // Records that the browser was shut down cleanly. | 
|  280   void LogCleanShutdown(); |  281   void LogCleanShutdown(); | 
|  281  |  282  | 
|  282   // Set the value in preferences for the number of bookmarks and folders |  283   // Set the value in preferences for the number of bookmarks and folders | 
|  283   // in node. The pref key for the number of bookmarks in num_bookmarks_key and |  284   // in node. The pref key for the number of bookmarks in num_bookmarks_key and | 
|  284   // the pref key for number of folders in num_folders_key. |  285   // the pref key for number of folders in num_folders_key. | 
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  438   friend bool prerender::IsOmniboxEnabled(Profile* profile); |  439   friend bool prerender::IsOmniboxEnabled(Profile* profile); | 
|  439   friend class extensions::ExtensionDownloader; |  440   friend class extensions::ExtensionDownloader; | 
|  440  |  441  | 
|  441   // Returns true if prefs::kMetricsReportingEnabled is set. |  442   // Returns true if prefs::kMetricsReportingEnabled is set. | 
|  442   static bool IsMetricsReportingEnabled(); |  443   static bool IsMetricsReportingEnabled(); | 
|  443  |  444  | 
|  444   DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); |  445   DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); | 
|  445 }; |  446 }; | 
|  446  |  447  | 
|  447 #endif  // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |  448 #endif  // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 
| OLD | NEW |