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

Unified Diff: components/ukm/ukm_service.h

Issue 2653693004: UKM Sync Observer (Closed)
Patch Set: MSVC struct initializer Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/ukm/test_ukm_service.cc ('k') | components/ukm/ukm_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ukm/ukm_service.h
diff --git a/components/ukm/ukm_service.h b/components/ukm/ukm_service.h
index 181ad085a46d32321a7c8774a2449a3911163757..249871f068213729cf7d64347adea9fec72e816e 100644
--- a/components/ukm/ukm_service.h
+++ b/components/ukm/ukm_service.h
@@ -47,6 +47,10 @@ class UkmService : public base::SupportsWeakPtr<UkmService> {
// Initializes the UKM service.
void Initialize();
+ // Enables/disables recording control if data is allowed to be collected.
+ void EnableRecording();
+ void DisableRecording();
+
// Enables/disables transmission of accumulated logs. Logs that have already
// been created will remain persisted to disk.
void EnableReporting();
@@ -62,6 +66,9 @@ class UkmService : public base::SupportsWeakPtr<UkmService> {
// Deletes any unsent local data.
void Purge();
+ // Resets the client id stored in prefs.
+ void ResetClientId();
+
// Registers the specified |provider| to provide additional metrics into the
// UKM log. Should be called during MetricsService initialization only.
void RegisterMetricsProvider(
@@ -100,6 +107,9 @@ class UkmService : public base::SupportsWeakPtr<UkmService> {
// A weak pointer to the PrefService used to read and write preferences.
PrefService* pref_service_;
+ // Whether recording new data is currently allowed.
+ bool recording_enabled_;
+
// The UKM client id stored in prefs.
uint64_t client_id_;
« no previous file with comments | « components/ukm/test_ukm_service.cc ('k') | components/ukm/ukm_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698