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

Unified Diff: components/metrics/metrics_service_client.h

Issue 292693003: Introduce MetricsServiceClient and ChromeMetricsServiceClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 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/metrics.gypi ('k') | components/metrics/metrics_service_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/metrics_service_client.h
===================================================================
--- components/metrics/metrics_service_client.h (revision 0)
+++ components/metrics/metrics_service_client.h (working copy)
@@ -0,0 +1,35 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_METRICS_METRICS_SERVICE_CLIENT_H_
+#define COMPONENTS_METRICS_METRICS_SERVICE_CLIENT_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "components/metrics/proto/system_profile.pb.h"
+
+namespace metrics {
+
+// An abstraction of operations that depend on the embedders (e.g. Chrome)
blundell 2014/05/19 10:00:23 nit: s/embedders/embedder's
Alexei Svitkine (slow) 2014/05/19 10:55:23 Done.
+// environment.
+class MetricsServiceClient {
+ public:
+ MetricsServiceClient();
blundell 2014/05/19 10:00:23 Does this need a defined constructor and .cc file
Alexei Svitkine (slow) 2014/05/19 10:55:23 I know that inline ctors and dtors are generally d
Ilya Sherman 2014/05/19 11:06:24 No preference. I think technically inlined constr
Alexei Svitkine (slow) 2014/05/19 11:34:57 Okay, in that case - I'll just keep the header fil
+ virtual ~MetricsServiceClient();
+
+ virtual void SetClientID(const std::string& client_id) = 0;
+ virtual bool IsOffTheRecordSessionActive() = 0;
+ virtual std::string GetApplicationLocale() = 0;
+ virtual bool GetBrand(std::string* brand_code) = 0;
+ virtual SystemProfileProto::Channel GetChannel() = 0;
+ virtual std::string GetVersionString() = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MetricsServiceClient);
+};
+
+} // namespace metrics
+
+#endif // COMPONENTS_METRICS_METRICS_SERVICE_CLIENT_H_
« no previous file with comments | « components/metrics.gypi ('k') | components/metrics/metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698