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 #include "url/gurl.h" | |
Bernhard Bauer
2015/06/13 10:25:16
You can forward-declare GURL without including the
| |
9 | |
8 // Put utility functions only used by //chrome code here. If a function declared | 10 // 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 | 11 // here would be meaningfully shared with other platforms, consider moving it to |
10 // components/content_settings/core/browser/content_settings_utils.h. | 12 // components/content_settings/core/browser/content_settings_utils.h. |
11 | 13 |
12 namespace content_settings { | 14 namespace content_settings { |
13 | 15 |
14 // UMA statistics for the mixed content shield | 16 // UMA statistics for the mixed content shield |
15 enum MixedScriptAction { | 17 enum MixedScriptAction { |
16 MIXED_SCRIPT_ACTION_DISPLAYED_SHIELD = 0, | 18 MIXED_SCRIPT_ACTION_DISPLAYED_SHIELD = 0, |
17 MIXED_SCRIPT_ACTION_DISPLAYED_BUBBLE, | 19 MIXED_SCRIPT_ACTION_DISPLAYED_BUBBLE, |
18 MIXED_SCRIPT_ACTION_CLICKED_ALLOW, | 20 MIXED_SCRIPT_ACTION_CLICKED_ALLOW, |
19 MIXED_SCRIPT_ACTION_CLICKED_LEARN_MORE, | 21 MIXED_SCRIPT_ACTION_CLICKED_LEARN_MORE, |
20 MIXED_SCRIPT_ACTION_COUNT | 22 MIXED_SCRIPT_ACTION_COUNT |
21 }; | 23 }; |
22 | 24 |
23 void RecordMixedScriptAction(MixedScriptAction action); | 25 void RecordMixedScriptAction(MixedScriptAction action); |
26 void RecordMixedScriptActionWithRAPPOR(MixedScriptAction action, | |
27 const GURL& url); | |
24 | 28 |
25 } // namespace content_settings | 29 } // namespace content_settings |
26 | 30 |
27 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_UTILS_H_ | 31 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_UTILS_H_ |
OLD | NEW |