| 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 COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_H_ |
| 6 #define CHROME_BROWSER_METRICS_METRICS_SERVICES_MANAGER_H_ | 6 #define COMPONENTS_METRICS_SERVICES_MANAGER_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 | 11 |
| 12 class MetricsServicesManagerClient; | |
| 13 | |
| 14 namespace base { | 12 namespace base { |
| 15 class FilePath; | 13 class FilePath; |
| 16 } | 14 } |
| 17 | 15 |
| 18 namespace metrics { | 16 namespace metrics { |
| 19 class MetricsService; | 17 class MetricsService; |
| 20 class MetricsServiceClient; | 18 class MetricsServiceClient; |
| 21 class MetricsStateManager; | 19 class MetricsStateManager; |
| 22 } | 20 } |
| 23 | 21 |
| 24 namespace rappor { | 22 namespace rappor { |
| 25 class RapporService; | 23 class RapporService; |
| 26 } | 24 } |
| 27 | 25 |
| 28 namespace variations { | 26 namespace variations { |
| 29 class VariationsService; | 27 class VariationsService; |
| 30 } | 28 } |
| 31 | 29 |
| 30 namespace metrics_services_manager { |
| 31 |
| 32 class MetricsServicesManagerClient; |
| 33 |
| 32 // MetricsServicesManager is a helper class for embedders that use the various | 34 // MetricsServicesManager is a helper class for embedders that use the various |
| 33 // metrics-related services in a Chrome-like fashion: MetricsService (via its | 35 // metrics-related services in a Chrome-like fashion: MetricsService (via its |
| 34 // client), RapporService and VariationsService. | 36 // client), RapporService and VariationsService. |
| 35 class MetricsServicesManager { | 37 class MetricsServicesManager { |
| 36 public: | 38 public: |
| 37 // Creates the MetricsServicesManager with the given client. | 39 // Creates the MetricsServicesManager with the given client. |
| 38 explicit MetricsServicesManager( | 40 explicit MetricsServicesManager( |
| 39 scoped_ptr<MetricsServicesManagerClient> client); | 41 scoped_ptr<MetricsServicesManagerClient> client); |
| 40 virtual ~MetricsServicesManager(); | 42 virtual ~MetricsServicesManager(); |
| 41 | 43 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 92 |
| 91 // The RapporService, for RAPPOR metric uploads. | 93 // The RapporService, for RAPPOR metric uploads. |
| 92 scoped_ptr<rappor::RapporService> rappor_service_; | 94 scoped_ptr<rappor::RapporService> rappor_service_; |
| 93 | 95 |
| 94 // The VariationsService, for server-side experiments infrastructure. | 96 // The VariationsService, for server-side experiments infrastructure. |
| 95 scoped_ptr<variations::VariationsService> variations_service_; | 97 scoped_ptr<variations::VariationsService> variations_service_; |
| 96 | 98 |
| 97 DISALLOW_COPY_AND_ASSIGN(MetricsServicesManager); | 99 DISALLOW_COPY_AND_ASSIGN(MetricsServicesManager); |
| 98 }; | 100 }; |
| 99 | 101 |
| 100 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICES_MANAGER_H_ | 102 } // namespace metrics_services_manager |
| 103 |
| 104 #endif // COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_H_ |
| OLD | NEW |