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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_UTILS_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_UTILS_H_
10 // 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
12 // components/content_settings/core/browser/content_settings_utils.h.
14 namespace content_settings
{
16 // UMA statistics for the mixed content shield
17 enum MixedScriptAction
{
18 MIXED_SCRIPT_ACTION_DISPLAYED_SHIELD
= 0,
19 MIXED_SCRIPT_ACTION_DISPLAYED_BUBBLE
,
20 MIXED_SCRIPT_ACTION_CLICKED_ALLOW
,
21 MIXED_SCRIPT_ACTION_CLICKED_LEARN_MORE
,
22 MIXED_SCRIPT_ACTION_COUNT
25 void RecordMixedScriptAction(MixedScriptAction action
);
26 void RecordMixedScriptActionWithRAPPOR(MixedScriptAction action
,
29 } // namespace content_settings
31 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_UTILS_H_