| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_USER_METRICS_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_USER_METRICS_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/callback.h" | |
| 11 #include "base/metrics/user_metrics_action.h" | |
| 12 #include "content/common/content_export.h" | |
| 13 | |
| 14 namespace content { | |
| 15 | |
| 16 // TODO(beaudoin): Get rid of these methods now that the base:: version does | |
| 17 // thread hopping. Tracked in crbug.com/601483. | |
| 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). | |
| 21 | |
| 22 CONTENT_EXPORT void RecordAction(const base::UserMetricsAction& action); | |
| 23 CONTENT_EXPORT void RecordComputedAction(const std::string& action); | |
| 24 | |
| 25 } // namespace content | |
| 26 | |
| 27 #endif // CONTENT_PUBLIC_BROWSER_USER_METRICS_H_ | |
| OLD | NEW |