Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Side by Side Diff: components/metrics_services_manager/metrics_services_manager.h

Issue 2567263003: Basic UkmService implementation (Closed)
Patch Set: Proto and client_id Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_H_ 5 #ifndef COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_H_
6 #define COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_H_ 6 #define COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/metrics/field_trial.h" 11 #include "base/metrics/field_trial.h"
12 #include "base/threading/thread_checker.h" 12 #include "base/threading/thread_checker.h"
13 13
14 namespace base { 14 namespace base {
15 class FilePath; 15 class FilePath;
16 } 16 }
17 17
18 namespace metrics { 18 namespace metrics {
19 class MetricsService; 19 class MetricsService;
20 class MetricsServiceClient; 20 class MetricsServiceClient;
21 class MetricsStateManager; 21 class MetricsStateManager;
22 } 22 }
23 23
24 namespace rappor { 24 namespace rappor {
25 class RapporServiceImpl; 25 class RapporServiceImpl;
26 } 26 }
27 27
28 namespace ukm {
29 class UkmService;
30 }
31
28 namespace variations { 32 namespace variations {
29 class VariationsService; 33 class VariationsService;
30 } 34 }
31 35
32 namespace metrics_services_manager { 36 namespace metrics_services_manager {
33 37
34 class MetricsServicesManagerClient; 38 class MetricsServicesManagerClient;
35 39
36 // MetricsServicesManager is a helper class for embedders that use the various 40 // MetricsServicesManager is a helper class for embedders that use the various
37 // metrics-related services in a Chrome-like fashion: MetricsService (via its 41 // metrics-related services in a Chrome-like fashion: MetricsService (via its
(...skipping 15 matching lines...) Expand all
53 std::unique_ptr<const base::FieldTrial::EntropyProvider> 57 std::unique_ptr<const base::FieldTrial::EntropyProvider>
54 CreateEntropyProvider(); 58 CreateEntropyProvider();
55 59
56 // Returns the MetricsService, creating it if it hasn't been created yet (and 60 // Returns the MetricsService, creating it if it hasn't been created yet (and
57 // additionally creating the MetricsServiceClient in that case). 61 // additionally creating the MetricsServiceClient in that case).
58 metrics::MetricsService* GetMetricsService(); 62 metrics::MetricsService* GetMetricsService();
59 63
60 // Returns the RapporServiceImpl, creating it if it hasn't been created yet. 64 // Returns the RapporServiceImpl, creating it if it hasn't been created yet.
61 rappor::RapporServiceImpl* GetRapporServiceImpl(); 65 rappor::RapporServiceImpl* GetRapporServiceImpl();
62 66
67 // Returns the RapporServiceImpl, creating it if it hasn't been created yet.
rkaplow 2017/01/02 23:23:03 update comment
Steven Holte 2017/01/03 21:16:03 Done.
68 ukm::UkmService* GetUkmService();
69
63 // Returns the VariationsService, creating it if it hasn't been created yet. 70 // Returns the VariationsService, creating it if it hasn't been created yet.
64 variations::VariationsService* GetVariationsService(); 71 variations::VariationsService* GetVariationsService();
65 72
66 // Should be called when a plugin loading error occurs. 73 // Should be called when a plugin loading error occurs.
67 void OnPluginLoadingError(const base::FilePath& plugin_path); 74 void OnPluginLoadingError(const base::FilePath& plugin_path);
68 75
69 // Some embedders use this method to notify the metrics system when a 76 // Some embedders use this method to notify the metrics system when a
70 // renderer process exits unexpectedly. 77 // renderer process exits unexpectedly.
71 void OnRendererProcessCrash(); 78 void OnRendererProcessCrash();
72 79
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 118
112 // The VariationsService, for server-side experiments infrastructure. 119 // The VariationsService, for server-side experiments infrastructure.
113 std::unique_ptr<variations::VariationsService> variations_service_; 120 std::unique_ptr<variations::VariationsService> variations_service_;
114 121
115 DISALLOW_COPY_AND_ASSIGN(MetricsServicesManager); 122 DISALLOW_COPY_AND_ASSIGN(MetricsServicesManager);
116 }; 123 };
117 124
118 } // namespace metrics_services_manager 125 } // namespace metrics_services_manager
119 126
120 #endif // COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_H_ 127 #endif // COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698