summaryrefslogtreecommitdiffstats
path: root/content/public/browser/user_metrics.h
blob: 118d8a93ae3a81cb8d5cc2924cd8ff2553e0c20a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_USER_METRICS_H_
#define CONTENT_PUBLIC_BROWSER_USER_METRICS_H_

#include <string>

#include "base/callback.h"
#include "base/metrics/user_metrics_action.h"
#include "content/common/content_export.h"

namespace content {

// 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).

CONTENT_EXPORT void RecordAction(const base::UserMetricsAction& action);
CONTENT_EXPORT void RecordComputedAction(const std::string& action);

}  // namespace content

#endif  // CONTENT_PUBLIC_BROWSER_USER_METRICS_H_