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

Unified Diff: ios/web/public/user_metrics.h

Issue 986743003: Upstream (most of) ios/web/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix namespace comment Created 5 years, 9 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 | « ios/web/public/url_util.h ('k') | ios/web/public/web_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/user_metrics.h
diff --git a/ios/web/public/user_metrics.h b/ios/web/public/user_metrics.h
new file mode 100644
index 0000000000000000000000000000000000000000..2f354edecfd4542f7da87266660de9a9b407135a
--- /dev/null
+++ b/ios/web/public/user_metrics.h
@@ -0,0 +1,27 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_WEB_PUBLIC_USER_METRICS_H_
+#define IOS_WEB_PUBLIC_USER_METRICS_H_
+
+#include <string>
+
+#include "base/callback.h"
+
+namespace base {
+struct UserMetricsAction;
+} // namespace base
+
+namespace web {
+
+// Wrappers around functions defined in base/metrics/user_metrics.h, refer to
+// that header for full documentation. These wrappers can be called from any
+// thread (they will post back to the UI thread to do the recording).
+
+void RecordAction(const base::UserMetricsAction& action);
+void RecordComputedAction(const std::string& action);
+
+} // namespace web
+
+#endif // IOS_WEB_PUBLIC_USER_METRICS_H_
« no previous file with comments | « ios/web/public/url_util.h ('k') | ios/web/public/web_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698