OLD | NEW |
---|---|
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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 CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_UTILS_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_UTILS_H_ |
6 #define CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_UTILS_H_ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_UTILS_H_ |
7 | 7 |
8 // Put utility functions only used by //chrome code here. If a function declared | 8 // Put utility functions only used by //chrome code here. If a function declared |
9 // here would be meaningfully shared with other platforms, consider moving it to | 9 // here would be meaningfully shared with other platforms, consider moving it to |
10 // components/content_settings/core/browser/content_settings_utils.h. | 10 // components/content_settings/core/browser/content_settings_utils.h. |
(...skipping 20 matching lines...) Expand all Loading... | |
31 PLUGINS_ACTION_DISPLAYED_BUBBLE, | 31 PLUGINS_ACTION_DISPLAYED_BUBBLE, |
32 PLUGINS_ACTION_CLICKED_RUN_ALL_PLUGINS_THIS_TIME, | 32 PLUGINS_ACTION_CLICKED_RUN_ALL_PLUGINS_THIS_TIME, |
33 PLUGINS_ACTION_CLICKED_ALWAYS_ALLOW_PLUGINS_ON_ORIGIN, | 33 PLUGINS_ACTION_CLICKED_ALWAYS_ALLOW_PLUGINS_ON_ORIGIN, |
34 PLUGINS_ACTION_CLICKED_MANAGE_PLUGIN_BLOCKING, | 34 PLUGINS_ACTION_CLICKED_MANAGE_PLUGIN_BLOCKING, |
35 PLUGINS_ACTION_CLICKED_LEARN_MORE, | 35 PLUGINS_ACTION_CLICKED_LEARN_MORE, |
36 PLUGINS_ACTION_COUNT | 36 PLUGINS_ACTION_COUNT |
37 }; | 37 }; |
38 | 38 |
39 void RecordPluginsAction(PluginsAction action); | 39 void RecordPluginsAction(PluginsAction action); |
40 | 40 |
41 // The different actions that a user can perform on the pop-up blocked page | |
42 // action in the omnibox, The enum values back an UMA histogram, so they must be | |
Nico
2017/01/03 14:34:07
don't capitalize after ,
Also, Use the same sente
| |
43 // treated as append-only. | |
44 enum PopupsAction { | |
45 POPUPS_ACTION_DISPLAYED_BLOCKED_ICON_IN_OMNIBOX = 0, | |
46 POPUPS_ACTION_DISPLAYED_BUBBLE, | |
47 POPUPS_ACTION_SELECTED_ALWAYS_ALLOW_POPUPS_FROM, | |
48 POPUPS_ACTION_CLICKED_LIST_ITEM_CLICKED, | |
49 POPUPS_ACTION_CLICKED_MANAGE_POPUPS_BLOCKING, | |
50 POPUPS_ACTION_COUNT | |
51 }; | |
52 | |
53 void RecordPopupsAction(PopupsAction action); | |
54 | |
41 } // namespace content_settings | 55 } // namespace content_settings |
42 | 56 |
43 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_UTILS_H_ | 57 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_UTILS_H_ |
OLD | NEW |