Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / content_settings / chrome_content_settings_utils.h
blobc78e43b82abf4dadf9f12fa6c4e704ee9f215dc0
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_
8 class GURL;
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,
27 const GURL& url);
29 } // namespace content_settings
31 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_UTILS_H_