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

Side by Side Diff: chrome/browser/metrics/chrome_metrics_services_manager_client.h

Issue 2510803003: Pass RapporService to content/browser/ (Closed)
Patch Set: Fix more compile errors in JNI files Created 4 years 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 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_CHROME_METRICS_SERVICES_MANAGER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICES_MANAGER_CLIENT_H_
6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICES_MANAGER_CLIENT_H_ 6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICES_MANAGER_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/feature_list.h" 10 #include "base/feature_list.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // eligible for sampling. 53 // eligible for sampling.
54 static bool GetSamplingRatePerMille(int* rate); 54 static bool GetSamplingRatePerMille(int* rate);
55 55
56 private: 56 private:
57 // This is defined as a member class to get access to 57 // This is defined as a member class to get access to
58 // ChromeMetricsServiceAccessor through ChromeMetricsServicesManagerClient's 58 // ChromeMetricsServiceAccessor through ChromeMetricsServicesManagerClient's
59 // friendship. 59 // friendship.
60 class ChromeEnabledStateProvider; 60 class ChromeEnabledStateProvider;
61 61
62 // metrics_services_manager::MetricsServicesManagerClient: 62 // metrics_services_manager::MetricsServicesManagerClient:
63 std::unique_ptr<rappor::RapporService> CreateRapporService() override; 63 std::unique_ptr<rappor::RapporServiceImpl> CreateRapporServiceImpl() override;
64 std::unique_ptr<variations::VariationsService> CreateVariationsService() 64 std::unique_ptr<variations::VariationsService> CreateVariationsService()
65 override; 65 override;
66 std::unique_ptr<metrics::MetricsServiceClient> CreateMetricsServiceClient() 66 std::unique_ptr<metrics::MetricsServiceClient> CreateMetricsServiceClient()
67 override; 67 override;
68 std::unique_ptr<const base::FieldTrial::EntropyProvider> 68 std::unique_ptr<const base::FieldTrial::EntropyProvider>
69 CreateEntropyProvider() override; 69 CreateEntropyProvider() override;
70 net::URLRequestContextGetter* GetURLRequestContext() override; 70 net::URLRequestContextGetter* GetURLRequestContext() override;
71 bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback) override; 71 bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback) override;
72 bool IsMetricsReportingEnabled() override; 72 bool IsMetricsReportingEnabled() override;
73 bool OnlyDoMetricsRecording() override; 73 bool OnlyDoMetricsRecording() override;
(...skipping 21 matching lines...) Expand all
95 PrefService* local_state_; 95 PrefService* local_state_;
96 96
97 // Subscription to SafeBrowsing service state changes. 97 // Subscription to SafeBrowsing service state changes.
98 std::unique_ptr<safe_browsing::SafeBrowsingService::StateSubscription> 98 std::unique_ptr<safe_browsing::SafeBrowsingService::StateSubscription>
99 sb_state_subscription_; 99 sb_state_subscription_;
100 100
101 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServicesManagerClient); 101 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServicesManagerClient);
102 }; 102 };
103 103
104 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICES_MANAGER_CLIENT_H_ 104 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICES_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698