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

Side by Side Diff: chrome/browser/permissions/permission_uma_util.h

Issue 2790493002: Implement permissions embargo for prompts which are repeatedly ignored. (Closed)
Patch Set: Not for plugins Created 3 years, 8 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 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_PERMISSIONS_PERMISSION_UMA_UTIL_H_ 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_UMA_UTIL_H_
6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_UMA_UTIL_H_ 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_UMA_UTIL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // Always keep this at the end. 49 // Always keep this at the end.
50 NUM, 50 NUM,
51 }; 51 };
52 52
53 // Any new values should be inserted immediately prior to NUM. 53 // Any new values should be inserted immediately prior to NUM.
54 enum class PermissionEmbargoStatus { 54 enum class PermissionEmbargoStatus {
55 NOT_EMBARGOED = 0, 55 NOT_EMBARGOED = 0,
56 PERMISSIONS_BLACKLISTING = 1, 56 PERMISSIONS_BLACKLISTING = 1,
57 REPEATED_DISMISSALS = 2, 57 REPEATED_DISMISSALS = 2,
58 REPEATED_IGNORES = 3,
58 59
59 // Keep this at the end. 60 // Keep this at the end.
60 NUM, 61 NUM,
61 }; 62 };
62 63
63 // A bundle for the information sent in a PermissionReport. 64 // A bundle for the information sent in a PermissionReport.
64 struct PermissionReportInfo { 65 struct PermissionReportInfo {
65 PermissionReportInfo( 66 PermissionReportInfo(
66 const GURL& origin, 67 const GURL& origin,
67 ContentSettingsType permission, 68 ContentSettingsType permission,
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 // for a single origin using |prefix| for the metric. 212 // for a single origin using |prefix| for the metric.
212 static void RecordPermissionPromptPriorCount( 213 static void RecordPermissionPromptPriorCount(
213 ContentSettingsType permission, 214 ContentSettingsType permission,
214 const std::string& prefix, 215 const std::string& prefix,
215 int count); 216 int count);
216 217
217 DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionUmaUtil); 218 DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionUmaUtil);
218 }; 219 };
219 220
220 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UMA_UTIL_H_ 221 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UMA_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/permissions/permission_result.h ('k') | chrome/browser/permissions/permission_uma_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698