Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: chrome/browser/content_settings/chrome_content_settings_utils.h

Issue 1148773005: Add a RAPPOR metric to track where users click to allow mixed scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't call RecordMixedScriptAction() from RecordMixedScriptActionWithRAPPOR(). Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/content_settings/chrome_content_settings_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/content_settings/chrome_content_settings_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698