OLD | NEW |
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_EXTENSION_METRICS_MODULE_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_METRICS_MODULE_H__ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_METRICS_MODULE_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_METRICS_MODULE_H__ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
12 #include "chrome/browser/extensions/extension_function.h" | 11 #include "chrome/browser/extensions/extension_function.h" |
13 | 12 |
14 class MetricsRecordUserActionFunction : public SyncExtensionFunction { | 13 class MetricsRecordUserActionFunction : public SyncExtensionFunction { |
15 public: | 14 public: |
16 DECLARE_EXTENSION_FUNCTION_NAME("metricsPrivate.recordUserAction") | 15 DECLARE_EXTENSION_FUNCTION_NAME("metricsPrivate.recordUserAction") |
17 | 16 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 DECLARE_EXTENSION_FUNCTION_NAME("metricsPrivate.recordLongTime") | 112 DECLARE_EXTENSION_FUNCTION_NAME("metricsPrivate.recordLongTime") |
114 | 113 |
115 protected: | 114 protected: |
116 virtual ~MetricsRecordLongTimeFunction() {} | 115 virtual ~MetricsRecordLongTimeFunction() {} |
117 | 116 |
118 // ExtensionFunction: | 117 // ExtensionFunction: |
119 virtual bool RunImpl() OVERRIDE; | 118 virtual bool RunImpl() OVERRIDE; |
120 }; | 119 }; |
121 | 120 |
122 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_METRICS_MODULE_H__ | 121 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_METRICS_MODULE_H__ |
OLD | NEW |