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 |
11 #include <map> | 11 #include <map> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
16 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
19 #include "base/metrics/field_trial.h" | 19 #include "base/metrics/field_trial.h" |
20 #include "base/metrics/user_metrics.h" | 20 #include "base/metrics/user_metrics.h" |
21 #include "base/observer_list.h" | 21 #include "base/observer_list.h" |
22 #include "base/process/kill.h" | 22 #include "base/process/kill.h" |
23 #include "base/threading/thread_checker.h" | 23 #include "base/threading/thread_checker.h" |
24 #include "base/time/time.h" | 24 #include "base/time/time.h" |
25 #include "chrome/browser/metrics/metrics_log.h" | 25 #include "chrome/browser/metrics/metrics_log.h" |
26 #include "chrome/browser/metrics/metrics_service_observer.h" | |
27 #include "chrome/browser/metrics/tracking_synchronizer_observer.h" | 26 #include "chrome/browser/metrics/tracking_synchronizer_observer.h" |
28 #include "chrome/common/metrics/metrics_service_base.h" | 27 #include "chrome/common/metrics/metrics_service_base.h" |
29 #include "chrome/installer/util/google_update_settings.h" | 28 #include "chrome/installer/util/google_update_settings.h" |
| 29 #include "components/metrics/metrics_service_observer.h" |
30 #include "components/variations/active_field_trials.h" | 30 #include "components/variations/active_field_trials.h" |
31 #include "content/public/browser/browser_child_process_observer.h" | 31 #include "content/public/browser/browser_child_process_observer.h" |
32 #include "content/public/browser/notification_observer.h" | 32 #include "content/public/browser/notification_observer.h" |
33 #include "content/public/browser/notification_registrar.h" | 33 #include "content/public/browser/notification_registrar.h" |
34 #include "content/public/browser/user_metrics.h" | 34 #include "content/public/browser/user_metrics.h" |
35 #include "net/url_request/url_fetcher_delegate.h" | 35 #include "net/url_request/url_fetcher_delegate.h" |
36 | 36 |
37 #if defined(OS_ANDROID) | 37 #if defined(OS_ANDROID) |
38 #include "chrome/browser/android/activity_type_ids.h" | 38 #include "chrome/browser/android/activity_type_ids.h" |
39 #endif | 39 #endif |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 | 630 |
631 // Registers/unregisters |observer| to receive MetricsLog notifications | 631 // Registers/unregisters |observer| to receive MetricsLog notifications |
632 // from metrics service. | 632 // from metrics service. |
633 static void AddMetricsServiceObserver(MetricsServiceObserver* observer); | 633 static void AddMetricsServiceObserver(MetricsServiceObserver* observer); |
634 static void RemoveMetricsServiceObserver(MetricsServiceObserver* observer); | 634 static void RemoveMetricsServiceObserver(MetricsServiceObserver* observer); |
635 | 635 |
636 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); | 636 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); |
637 }; | 637 }; |
638 | 638 |
639 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 639 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
OLD | NEW |