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

Unified Diff: chrome/browser/extensions/api/metrics/metrics.h

Issue 10696145: Moving metrics to api/ . (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Putting back "using" and updating WATCHLISTS Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « WATCHLISTS ('k') | chrome/browser/extensions/api/metrics/metrics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « WATCHLISTS ('k') | chrome/browser/extensions/api/metrics/metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698