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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 const tracked_objects::ProcessDataSnapshot& process_data, | 220 const tracked_objects::ProcessDataSnapshot& process_data, |
221 content::ProcessType process_type) OVERRIDE; | 221 content::ProcessType process_type) OVERRIDE; |
222 // Callback that moves the state to INIT_TASK_DONE. | 222 // Callback that moves the state to INIT_TASK_DONE. |
223 virtual void FinishedReceivingProfilerData() OVERRIDE; | 223 virtual void FinishedReceivingProfilerData() OVERRIDE; |
224 | 224 |
225 // Returns the low entropy source for this client. This is a random value | 225 // Returns the low entropy source for this client. This is a random value |
226 // that is non-identifying amongst browser clients. This method will | 226 // that is non-identifying amongst browser clients. This method will |
227 // generate the entropy source value if it has not been called before. | 227 // generate the entropy source value if it has not been called before. |
228 int GetLowEntropySource(); | 228 int GetLowEntropySource(); |
229 | 229 |
230 // Returns the last entropy source that was returned by this service since | 230 // Returns the first entropy source that was returned by this service since |
231 // start up, or NONE if neither was returned yet. This is exposed for testing | 231 // start up, or NONE if neither was returned yet. This is exposed for testing |
232 // only. | 232 // only. |
233 EntropySourceReturned entropy_source_returned() const { | 233 EntropySourceReturned entropy_source_returned() const { |
234 return entropy_source_returned_; | 234 return entropy_source_returned_; |
235 } | 235 } |
236 | 236 |
237 // When we start a new version of Chromium (different from our last run), we | 237 // When we start a new version of Chromium (different from our last run), we |
238 // need to discard the old crash stats so that we don't attribute crashes etc. | 238 // need to discard the old crash stats so that we don't attribute crashes etc. |
239 // in the old version to the current version (via current logs). | 239 // in the old version to the current version (via current logs). |
240 // Without this, a common reason to finally start a new version is to crash | 240 // Without this, a common reason to finally start a new version is to crash |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 friend bool prerender::IsOmniboxEnabled(Profile* profile); | 507 friend bool prerender::IsOmniboxEnabled(Profile* profile); |
508 friend class extensions::ExtensionDownloader; | 508 friend class extensions::ExtensionDownloader; |
509 | 509 |
510 // Returns true if prefs::kMetricsReportingEnabled is set. | 510 // Returns true if prefs::kMetricsReportingEnabled is set. |
511 static bool IsMetricsReportingEnabled(); | 511 static bool IsMetricsReportingEnabled(); |
512 | 512 |
513 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); | 513 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); |
514 }; | 514 }; |
515 | 515 |
516 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 516 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
OLD | NEW |