| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_METRICS_METRICS_SERVICE_H_ | 8 #ifndef COMPONENTS_METRICS_METRICS_SERVICE_H_ |
| 9 #define COMPONENTS_METRICS_METRICS_SERVICE_H_ | 9 #define COMPONENTS_METRICS_METRICS_SERVICE_H_ |
| 10 | 10 |
| 11 #include <stdint.h> | 11 #include <stdint.h> |
| 12 | 12 |
| 13 #include <map> | 13 #include <map> |
| 14 #include <memory> | 14 #include <memory> |
| 15 #include <string> | 15 #include <string> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "base/gtest_prod_util.h" | 18 #include "base/gtest_prod_util.h" |
| 19 #include "base/macros.h" | 19 #include "base/macros.h" |
| 20 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
| 21 #include "base/metrics/field_trial.h" | 21 #include "base/metrics/field_trial.h" |
| 22 #include "base/metrics/histogram_flattener.h" | 22 #include "base/metrics/histogram_flattener.h" |
| 23 #include "base/metrics/histogram_snapshot_manager.h" | 23 #include "base/metrics/histogram_snapshot_manager.h" |
| 24 #include "base/metrics/user_metrics.h" | 24 #include "base/metrics/user_metrics.h" |
| 25 #include "base/observer_list.h" | 25 #include "base/observer_list.h" |
| 26 #include "base/single_thread_task_runner.h" |
| 26 #include "base/threading/thread_checker.h" | 27 #include "base/threading/thread_checker.h" |
| 27 #include "base/time/time.h" | 28 #include "base/time/time.h" |
| 28 #include "build/build_config.h" | 29 #include "build/build_config.h" |
| 29 #include "components/metrics/clean_exit_beacon.h" | 30 #include "components/metrics/clean_exit_beacon.h" |
| 30 #include "components/metrics/execution_phase.h" | 31 #include "components/metrics/execution_phase.h" |
| 31 #include "components/metrics/metrics_log.h" | 32 #include "components/metrics/metrics_log.h" |
| 32 #include "components/metrics/metrics_log_manager.h" | 33 #include "components/metrics/metrics_log_manager.h" |
| 33 #include "components/metrics/metrics_log_store.h" | 34 #include "components/metrics/metrics_log_store.h" |
| 34 #include "components/metrics/metrics_provider.h" | 35 #include "components/metrics/metrics_provider.h" |
| 35 #include "components/metrics/metrics_reporting_service.h" | 36 #include "components/metrics/metrics_reporting_service.h" |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 // Weak pointers factory used to post task on different threads. All weak | 436 // Weak pointers factory used to post task on different threads. All weak |
| 436 // pointers managed by this factory have the same lifetime as MetricsService. | 437 // pointers managed by this factory have the same lifetime as MetricsService. |
| 437 base::WeakPtrFactory<MetricsService> self_ptr_factory_; | 438 base::WeakPtrFactory<MetricsService> self_ptr_factory_; |
| 438 | 439 |
| 439 DISALLOW_COPY_AND_ASSIGN(MetricsService); | 440 DISALLOW_COPY_AND_ASSIGN(MetricsService); |
| 440 }; | 441 }; |
| 441 | 442 |
| 442 } // namespace metrics | 443 } // namespace metrics |
| 443 | 444 |
| 444 #endif // COMPONENTS_METRICS_METRICS_SERVICE_H_ | 445 #endif // COMPONENTS_METRICS_METRICS_SERVICE_H_ |
| OLD | NEW |