Index: chrome/browser/extensions/api/metrics/metrics.h |
diff --git a/chrome/browser/extensions/extension_metrics_module.h b/chrome/browser/extensions/api/metrics/metrics.h |
similarity index 90% |
rename from chrome/browser/extensions/extension_metrics_module.h |
rename to chrome/browser/extensions/api/metrics/metrics.h |
index fcb4307b8475e4654916d2bd6d35c9d6f5f2f7da..eefddf4b6820c14ab946a1c59cc47f408f0e3667 100644 |
--- a/chrome/browser/extensions/extension_metrics_module.h |
+++ b/chrome/browser/extensions/api/metrics/metrics.h |
@@ -2,8 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_METRICS_MODULE_H__ |
-#define CHROME_BROWSER_EXTENSIONS_EXTENSION_METRICS_MODULE_H__ |
+#ifndef CHROME_BROWSER_EXTENSIONS_API_METRICS_METRICS_H_ |
+#define CHROME_BROWSER_EXTENSIONS_API_METRICS_METRICS_H_ |
#pragma once |
#include <string> |
@@ -11,6 +11,8 @@ |
#include "base/metrics/histogram.h" |
#include "chrome/browser/extensions/extension_function.h" |
+namespace extensions { |
+ |
class MetricsRecordUserActionFunction : public SyncExtensionFunction { |
public: |
DECLARE_EXTENSION_FUNCTION_NAME("metricsPrivate.recordUserAction") |
@@ -28,7 +30,8 @@ class MetricsHistogramHelperFunction : public SyncExtensionFunction { |
bool GetNameAndSample(std::string* name, int* sample); |
virtual bool RecordValue(const std::string& name, |
base::Histogram::ClassType type, |
- int min, int max, size_t buckets, int sample); |
+ int min, int max, size_t buckets, |
+ int sample); |
}; |
class MetricsRecordValueFunction : public MetricsHistogramHelperFunction { |
@@ -119,4 +122,6 @@ class MetricsRecordLongTimeFunction : public MetricsHistogramHelperFunction { |
virtual bool RunImpl() OVERRIDE; |
}; |
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_METRICS_MODULE_H__ |
+} // namespace extensions |
+ |
+#endif // CHROME_BROWSER_EXTENSIONS_API_METRICS_METRICS_H_ |