OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PUBLIC_BROWSER_USER_METRICS_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_USER_METRICS_H_ |
6 #define CONTENT_PUBLIC_BROWSER_USER_METRICS_H_ | 6 #define CONTENT_PUBLIC_BROWSER_USER_METRICS_H_ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
12 | 11 |
13 namespace content { | 12 namespace content { |
14 | 13 |
15 // This module provides some helper functions for logging actions tracked by | 14 // This module provides some helper functions for logging actions tracked by |
16 // the user metrics system. | 15 // the user metrics system. |
17 | 16 |
(...skipping 29 matching lines...) Expand all Loading... |
47 // This function has identical input and behavior to RecordAction, but is | 46 // This function has identical input and behavior to RecordAction, but is |
48 // not automatically found by the action-processing scripts. It can be used | 47 // not automatically found by the action-processing scripts. It can be used |
49 // when it's a pain to enumerate all possible actions, but if you use this | 48 // when it's a pain to enumerate all possible actions, but if you use this |
50 // you need to also update the rules for extracting known actions in | 49 // you need to also update the rules for extracting known actions in |
51 // chrome/tools/extract_actions.py. | 50 // chrome/tools/extract_actions.py. |
52 CONTENT_EXPORT void RecordComputedAction(const std::string& action); | 51 CONTENT_EXPORT void RecordComputedAction(const std::string& action); |
53 | 52 |
54 } // namespace content | 53 } // namespace content |
55 | 54 |
56 #endif // CONTENT_PUBLIC_BROWSER_USER_METRICS_H_ | 55 #endif // CONTENT_PUBLIC_BROWSER_USER_METRICS_H_ |
OLD | NEW |