Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ios / web / public / user_metrics.h
blob2f354edecfd4542f7da87266660de9a9b407135a
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef IOS_WEB_PUBLIC_USER_METRICS_H_
6 #define IOS_WEB_PUBLIC_USER_METRICS_H_
8 #include <string>
10 #include "base/callback.h"
12 namespace base {
13 struct UserMetricsAction;
14 } // namespace base
16 namespace web {
18 // Wrappers around functions defined in base/metrics/user_metrics.h, refer to
19 // that header for full documentation. These wrappers can be called from any
20 // thread (they will post back to the UI thread to do the recording).
22 void RecordAction(const base::UserMetricsAction& action);
23 void RecordComputedAction(const std::string& action);
25 } // namespace web
27 #endif // IOS_WEB_PUBLIC_USER_METRICS_H_