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 class GURL; | |
9 | |
10 // 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 |
11 // 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 |
12 // components/content_settings/core/browser/content_settings_utils.h. | 10 // components/content_settings/core/browser/content_settings_utils.h. |
13 | 11 |
14 namespace content_settings { | 12 namespace content_settings { |
15 | 13 |
16 // UMA histogram for the mixed script shield. The enum values correspond to | 14 // UMA histogram for the mixed script shield. The enum values correspond to |
17 // histogram entries, so do not remove any existing values. | 15 // histogram entries, so do not remove any existing values. |
18 enum MixedScriptAction { | 16 enum MixedScriptAction { |
19 MIXED_SCRIPT_ACTION_DISPLAYED_SHIELD = 0, | 17 MIXED_SCRIPT_ACTION_DISPLAYED_SHIELD = 0, |
(...skipping 16 matching lines...) Expand all Loading... |
36 PLUGINS_ACTION_CLICKED_MANAGE_PLUGIN_BLOCKING, | 34 PLUGINS_ACTION_CLICKED_MANAGE_PLUGIN_BLOCKING, |
37 PLUGINS_ACTION_CLICKED_LEARN_MORE, | 35 PLUGINS_ACTION_CLICKED_LEARN_MORE, |
38 PLUGINS_ACTION_COUNT | 36 PLUGINS_ACTION_COUNT |
39 }; | 37 }; |
40 | 38 |
41 void RecordPluginsAction(PluginsAction action); | 39 void RecordPluginsAction(PluginsAction action); |
42 | 40 |
43 } // namespace content_settings | 41 } // namespace content_settings |
44 | 42 |
45 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_UTILS_H_ | 43 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_UTILS_H_ |
OLD | NEW |