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

Unified Diff: components/metrics/metrics_service_client.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
Index: components/metrics/metrics_service_client.h
diff --git a/components/metrics/metrics_service_client.h b/components/metrics/metrics_service_client.h
index 858d1d87db491f533ddcc9611231115b1d41f6ba..2ce20179adfd3d8fc101ac5db891867a50180438 100644
--- a/components/metrics/metrics_service_client.h
+++ b/components/metrics/metrics_service_client.h
@@ -10,7 +10,7 @@
#include <memory>
#include <string>
-#include "base/callback_forward.h"
+#include "base/callback.h"
#include "base/strings/string16.h"
#include "base/time/time.h"
#include "components/metrics/metrics_reporting_default_state.h"
@@ -33,7 +33,8 @@ class MetricsService;
// environment.
class MetricsServiceClient {
public:
- virtual ~MetricsServiceClient() {}
+ MetricsServiceClient();
+ virtual ~MetricsServiceClient();
// Returns the MetricsService instance that this client is associated with.
// With the exception of testing contexts, the returned instance must be valid
@@ -120,6 +121,21 @@ class MetricsServiceClient {
// Returns whether cellular logic is enabled for metrics reporting.
virtual bool IsUMACellularUploadLogicEnabled();
+
+ // Returns if history sync is enabled on all active profiles.
+ virtual bool IsHistorySyncEnabledOnAllProfiles();
+
+ // Sets the callback to run MetricsServiceManager::UpdateRunningServices.
+ void SetUpdateRunningServicesCallback(const base::Closure& callback);
+
+ protected:
+ // Notify MetricsServiceManager to UpdateRunningServices using callback.
+ void UpdateRunningServices();
+
+ private:
+ base::Closure update_running_services_;
+
+ DISALLOW_COPY_AND_ASSIGN(MetricsServiceClient);
};
} // namespace metrics
« no previous file with comments | « chrome/browser/metrics/chrome_metrics_service_client.cc ('k') | components/metrics/metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698