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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/metrics.gypi ('k') | components/metrics/metrics_service_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_METRICS_METRICS_SERVICE_CLIENT_H_
6 #define COMPONENTS_METRICS_METRICS_SERVICE_CLIENT_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11 #include "components/metrics/proto/system_profile.pb.h"
12
13 namespace metrics {
14
15 // 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.
16 // environment.
17 class MetricsServiceClient {
18 public:
19 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
20 virtual ~MetricsServiceClient();
21
22 virtual void SetClientID(const std::string& client_id) = 0;
23 virtual bool IsOffTheRecordSessionActive() = 0;
24 virtual std::string GetApplicationLocale() = 0;
25 virtual bool GetBrand(std::string* brand_code) = 0;
26 virtual SystemProfileProto::Channel GetChannel() = 0;
27 virtual std::string GetVersionString() = 0;
28
29 private:
30 DISALLOW_COPY_AND_ASSIGN(MetricsServiceClient);
31 };
32
33 } // namespace metrics
34
35 #endif // COMPONENTS_METRICS_METRICS_SERVICE_CLIENT_H_
OLDNEW
« 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