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

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
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 embedder's (e.g. Chrome)
16 // environment.
17 class MetricsServiceClient {
18 public:
19 MetricsServiceClient();
20 virtual ~MetricsServiceClient();
21
22 virtual void SetClientID(const std::string& client_id) = 0;
23 virtual bool IsOffTheRecordSessionActive() = 0;
Ilya Sherman 2014/05/19 11:02:37 nit: I think we prefer "Incognito" over "OffTheRec
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;
Ilya Sherman 2014/05/19 11:02:37 Please document all of these methods. Most will p
Alexei Svitkine (slow) 2014/05/19 11:43:25 Done.
28
29 private:
30 DISALLOW_COPY_AND_ASSIGN(MetricsServiceClient);
31 };
32
33 } // namespace metrics
34
35 #endif // COMPONENTS_METRICS_METRICS_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698