| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |