OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_CLIENT_H_ | 5 #ifndef COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H_ |
6 #define CHROME_BROWSER_METRICS_METRICS_SERVICES_MANAGER_CLIENT_H_ | 6 #define COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/threading/thread_checker.h" | 11 #include "base/threading/thread_checker.h" |
12 | 12 |
13 namespace metrics { | 13 namespace metrics { |
14 class MetricsService; | 14 class MetricsService; |
15 class MetricsServiceClient; | 15 class MetricsServiceClient; |
16 } | 16 } |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 class URLRequestContextGetter; | 19 class URLRequestContextGetter; |
20 } | 20 } |
21 | 21 |
22 namespace rappor { | 22 namespace rappor { |
23 class RapporService; | 23 class RapporService; |
24 } | 24 } |
25 | 25 |
26 namespace variations { | 26 namespace variations { |
27 class VariationsService; | 27 class VariationsService; |
28 } | 28 } |
29 | 29 |
| 30 namespace metrics_services_manager { |
| 31 |
30 // MetricsServicesManagerClient is an interface that allows | 32 // MetricsServicesManagerClient is an interface that allows |
31 // MetricsServicesManager to interact with its embedder. | 33 // MetricsServicesManager to interact with its embedder. |
32 class MetricsServicesManagerClient { | 34 class MetricsServicesManagerClient { |
33 public: | 35 public: |
34 virtual ~MetricsServicesManagerClient() {} | 36 virtual ~MetricsServicesManagerClient() {} |
35 | 37 |
36 // Methods that create the various services in the context of the embedder. | 38 // Methods that create the various services in the context of the embedder. |
37 virtual scoped_ptr<rappor::RapporService> CreateRapporService() = 0; | 39 virtual scoped_ptr<rappor::RapporService> CreateRapporService() = 0; |
38 virtual scoped_ptr<variations::VariationsService> | 40 virtual scoped_ptr<variations::VariationsService> |
39 CreateVariationsService() = 0; | 41 CreateVariationsService() = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
52 virtual bool IsSafeBrowsingEnabled( | 54 virtual bool IsSafeBrowsingEnabled( |
53 const base::Closure& on_update_callback) = 0; | 55 const base::Closure& on_update_callback) = 0; |
54 | 56 |
55 // Returns whether metrics reporting is enabled. | 57 // Returns whether metrics reporting is enabled. |
56 virtual bool IsMetricsReportingEnabled() = 0; | 58 virtual bool IsMetricsReportingEnabled() = 0; |
57 | 59 |
58 // Whether the metrics services should record but not report metrics. | 60 // Whether the metrics services should record but not report metrics. |
59 virtual bool OnlyDoMetricsRecording() = 0; | 61 virtual bool OnlyDoMetricsRecording() = 0; |
60 }; | 62 }; |
61 | 63 |
62 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICES_MANAGER_CLIENT_H_ | 64 } // namespace metrics_services_manager |
| 65 |
| 66 #endif // COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H
_ |
OLD | NEW |