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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 | 446 |
447 // Dictionary containing all the profile specific metrics. This is set | 447 // Dictionary containing all the profile specific metrics. This is set |
448 // at creation time from the prefs. | 448 // at creation time from the prefs. |
449 scoped_ptr<base::DictionaryValue> profile_dictionary_; | 449 scoped_ptr<base::DictionaryValue> profile_dictionary_; |
450 | 450 |
451 // The scheduler for determining when uploads should happen. | 451 // The scheduler for determining when uploads should happen. |
452 scoped_ptr<MetricsReportingScheduler> scheduler_; | 452 scoped_ptr<MetricsReportingScheduler> scheduler_; |
453 | 453 |
454 // Indicates that an asynchronous reporting step is running. | 454 // Indicates that an asynchronous reporting step is running. |
455 // This is used only for debugging. | 455 // This is used only for debugging. |
456 bool waiting_for_asynchronus_reporting_step_; | 456 bool waiting_for_asynchronous_reporting_step_; |
457 | 457 |
458 #if defined(OS_CHROMEOS) | 458 #if defined(OS_CHROMEOS) |
459 // The external metric service is used to log ChromeOS UMA events. | 459 // The external metric service is used to log ChromeOS UMA events. |
460 scoped_refptr<chromeos::ExternalMetrics> external_metrics_; | 460 scoped_refptr<chromeos::ExternalMetrics> external_metrics_; |
461 #endif | 461 #endif |
462 | 462 |
463 // Reduntant marker to check that we completed our shutdown, and set the | 463 // Reduntant marker to check that we completed our shutdown, and set the |
464 // exited-cleanly bit in the prefs. | 464 // exited-cleanly bit in the prefs. |
465 static ShutdownCleanliness clean_shutdown_status_; | 465 static ShutdownCleanliness clean_shutdown_status_; |
466 | 466 |
(...skipping 11 matching lines...) Expand all Loading... |
478 friend bool prerender::IsOmniboxEnabled(Profile* profile); | 478 friend bool prerender::IsOmniboxEnabled(Profile* profile); |
479 friend class extensions::ExtensionDownloader; | 479 friend class extensions::ExtensionDownloader; |
480 | 480 |
481 // Returns true if prefs::kMetricsReportingEnabled is set. | 481 // Returns true if prefs::kMetricsReportingEnabled is set. |
482 static bool IsMetricsReportingEnabled(); | 482 static bool IsMetricsReportingEnabled(); |
483 | 483 |
484 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); | 484 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); |
485 }; | 485 }; |
486 | 486 |
487 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 487 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
OLD | NEW |