| 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 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICES_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICES_MANAGER_H_ |
| 6 #define CHROME_BROWSER_METRICS_METRICS_SERVICES_MANAGER_H_ | 6 #define CHROME_BROWSER_METRICS_METRICS_SERVICES_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/threading/thread_checker.h" | 10 #include "base/threading/thread_checker.h" |
| 11 #include "chrome/browser/metrics/chrome_metrics_service_client.h" |
| 11 | 12 |
| 12 class MetricsService; | 13 class MetricsService; |
| 13 class PrefService; | 14 class PrefService; |
| 14 | 15 |
| 15 namespace metrics { | 16 namespace metrics { |
| 16 class MetricsStateManager; | 17 class MetricsStateManager; |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace rappor { | 20 namespace rappor { |
| 20 class RapporService; | 21 class RapporService; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 47 | 48 |
| 48 // Ensures that all functions are called from the same thread. | 49 // Ensures that all functions are called from the same thread. |
| 49 base::ThreadChecker thread_checker_; | 50 base::ThreadChecker thread_checker_; |
| 50 | 51 |
| 51 // Weak pointer to the local state prefs store. | 52 // Weak pointer to the local state prefs store. |
| 52 PrefService* local_state_; | 53 PrefService* local_state_; |
| 53 | 54 |
| 54 // MetricsStateManager which is passed as a parameter to service constructors. | 55 // MetricsStateManager which is passed as a parameter to service constructors. |
| 55 scoped_ptr<metrics::MetricsStateManager> metrics_state_manager_; | 56 scoped_ptr<metrics::MetricsStateManager> metrics_state_manager_; |
| 56 | 57 |
| 58 // Chrome embedder implementation of the MetricsServiceClient, which is passed |
| 59 // as a parameter to the MetricsService. |
| 60 ChromeMetricsServiceClient metrics_service_client_; |
| 61 |
| 57 // The MetricsService, used for UMA report uploads. | 62 // The MetricsService, used for UMA report uploads. |
| 58 scoped_ptr<MetricsService> metrics_service_; | 63 scoped_ptr<MetricsService> metrics_service_; |
| 59 | 64 |
| 60 // The RapporService, for RAPPOR metric uploads. | 65 // The RapporService, for RAPPOR metric uploads. |
| 61 scoped_ptr<rappor::RapporService> rappor_service_; | 66 scoped_ptr<rappor::RapporService> rappor_service_; |
| 62 | 67 |
| 63 // The VariationsService, for server-side experiments infrastructure. | 68 // The VariationsService, for server-side experiments infrastructure. |
| 64 scoped_ptr<chrome_variations::VariationsService> variations_service_; | 69 scoped_ptr<chrome_variations::VariationsService> variations_service_; |
| 65 | 70 |
| 66 DISALLOW_COPY_AND_ASSIGN(MetricsServicesManager); | 71 DISALLOW_COPY_AND_ASSIGN(MetricsServicesManager); |
| 67 }; | 72 }; |
| 68 | 73 |
| 69 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICES_MANAGER_H_ | 74 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICES_MANAGER_H_ |
| OLD | NEW |