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

Side by Side Diff: chrome/browser/extensions/api/metrics_private/metrics_private_api.h

Issue 22382006: Use experimentation framework parameters for location sensitivity (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing Created 7 years, 4 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_METRICS_PRIVATE_METRICS_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_METRICS_PRIVATE_METRICS_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_METRICS_PRIVATE_METRICS_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_METRICS_PRIVATE_METRICS_PRIVATE_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 19 matching lines...) Expand all
30 DECLARE_EXTENSION_FUNCTION("metricsPrivate.getFieldTrial", 30 DECLARE_EXTENSION_FUNCTION("metricsPrivate.getFieldTrial",
31 METRICSPRIVATE_GETFIELDTRIAL) 31 METRICSPRIVATE_GETFIELDTRIAL)
32 32
33 protected: 33 protected:
34 virtual ~MetricsPrivateGetFieldTrialFunction() {} 34 virtual ~MetricsPrivateGetFieldTrialFunction() {}
35 35
36 // ExtensionFunction: 36 // ExtensionFunction:
37 virtual bool RunImpl() OVERRIDE; 37 virtual bool RunImpl() OVERRIDE;
38 }; 38 };
39 39
40 class MetricsPrivateGetVariationParamsFunction : public SyncExtensionFunction {
41 public:
42 DECLARE_EXTENSION_FUNCTION("metricsPrivate.getVariationParams",
43 METRICSPRIVATE_GETVARIATIONPARAMS)
44
45 protected:
46 virtual ~MetricsPrivateGetVariationParamsFunction() {}
47
48 // ExtensionFunction:
49 virtual bool RunImpl() OVERRIDE;
50 };
51
40 class MetricsPrivateRecordUserActionFunction : public SyncExtensionFunction { 52 class MetricsPrivateRecordUserActionFunction : public SyncExtensionFunction {
41 public: 53 public:
42 DECLARE_EXTENSION_FUNCTION("metricsPrivate.recordUserAction", 54 DECLARE_EXTENSION_FUNCTION("metricsPrivate.recordUserAction",
43 METRICSPRIVATE_RECORDUSERACTION) 55 METRICSPRIVATE_RECORDUSERACTION)
44 56
45 protected: 57 protected:
46 virtual ~MetricsPrivateRecordUserActionFunction() {} 58 virtual ~MetricsPrivateRecordUserActionFunction() {}
47 59
48 // ExtensionFunction: 60 // ExtensionFunction:
49 virtual bool RunImpl() OVERRIDE; 61 virtual bool RunImpl() OVERRIDE;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 protected: 170 protected:
159 virtual ~MetricsPrivateRecordLongTimeFunction() {} 171 virtual ~MetricsPrivateRecordLongTimeFunction() {}
160 172
161 // ExtensionFunction: 173 // ExtensionFunction:
162 virtual bool RunImpl() OVERRIDE; 174 virtual bool RunImpl() OVERRIDE;
163 }; 175 };
164 176
165 } // namespace extensions 177 } // namespace extensions
166 178
167 #endif // CHROME_BROWSER_EXTENSIONS_API_METRICS_PRIVATE_METRICS_PRIVATE_API_H_ 179 #endif // CHROME_BROWSER_EXTENSIONS_API_METRICS_PRIVATE_METRICS_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698