| Index: chrome/browser/permissions/permission_uma_util.h
|
| diff --git a/chrome/browser/permissions/permission_uma_util.h b/chrome/browser/permissions/permission_uma_util.h
|
| index e920c3e3a918576f7a20dc5bb27a5831a7b62242..38aed87f5acc73a33c9d7168b82e7f5a4bcd4f65 100644
|
| --- a/chrome/browser/permissions/permission_uma_util.h
|
| +++ b/chrome/browser/permissions/permission_uma_util.h
|
| @@ -13,14 +13,13 @@
|
|
|
| enum class PermissionRequestGestureType;
|
| class GURL;
|
| +class PermissionRequest;
|
| class Profile;
|
|
|
| namespace content {
|
| enum class PermissionType;
|
| } // namespace content
|
|
|
| -class PermissionRequest;
|
| -
|
| // This should stay in sync with the SourceUI enum in the permission report
|
| // protobuf (src/chrome/common/safe_browsing/permission_report.proto).
|
| enum class PermissionSourceUI {
|
| @@ -33,6 +32,38 @@ enum class PermissionSourceUI {
|
| SOURCE_UI_NUM,
|
| };
|
|
|
| +// This should stay in sync with the PersistDecision enum in the permission
|
| +// report message (src/chrome/common/safe_browsing/permission_report.proto).
|
| +enum class PermissionPersistDecision {
|
| + UNSPECIFIED = 0,
|
| + PERSISTED = 1,
|
| + NOT_PERSISTED = 2,
|
| +};
|
| +
|
| +// A bundle for the information sent in a PermissionReport.
|
| +struct PermissionReportInfo {
|
| + PermissionReportInfo(
|
| + const GURL& origin,
|
| + content::PermissionType permission,
|
| + PermissionAction action,
|
| + PermissionSourceUI source_ui,
|
| + PermissionRequestGestureType gesture_type,
|
| + PermissionPersistDecision persist_decision,
|
| + int num_prior_dismissals,
|
| + int num_prior_ignores);
|
| +
|
| + PermissionReportInfo(const PermissionReportInfo& other);
|
| +
|
| + GURL origin;
|
| + content::PermissionType permission;
|
| + PermissionAction action;
|
| + PermissionSourceUI source_ui;
|
| + PermissionRequestGestureType gesture_type;
|
| + PermissionPersistDecision persist_decision;
|
| + int num_prior_dismissals;
|
| + int num_prior_ignores;
|
| +};
|
| +
|
| // Provides a convenient way of logging UMA for permission related operations.
|
| class PermissionUmaUtil {
|
| public:
|
|
|