From 50eb3dab29da5b6c6ca279fc742cce4dc0cbae6a Mon Sep 17 00:00:00 2001 From: miguelg Date: Thu, 9 Oct 2014 09:18:58 -0700 Subject: Upgrade the generic permission UMA Records actions per origin type (secure or insecure) BUG=419731 Review URL: https://codereview.chromium.org/630793003 Cr-Commit-Position: refs/heads/master@{#298894} --- .../content_settings/permission_context_uma_util.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'chrome/browser/content_settings/permission_context_uma_util.h') diff --git a/chrome/browser/content_settings/permission_context_uma_util.h b/chrome/browser/content_settings/permission_context_uma_util.h index d364efb..8d769ae 100644 --- a/chrome/browser/content_settings/permission_context_uma_util.h +++ b/chrome/browser/content_settings/permission_context_uma_util.h @@ -8,15 +8,22 @@ #include "base/logging.h" #include "components/content_settings/core/common/content_settings_types.h" +class GURL; + // Provides a convenient way of logging UMA for permission related // operations. class PermissionContextUmaUtil { public: - static void PermissionGranted(ContentSettingsType permission); - static void PermissionDenied(ContentSettingsType permission); - static void PermissionDismissed(ContentSettingsType permission); - static void PermissionIgnored(ContentSettingsType permission); - static void PermissionRequested(ContentSettingsType permission); + static void PermissionGranted(ContentSettingsType permission, + const GURL& requesting_origin); + static void PermissionDenied(ContentSettingsType permission, + const GURL& requesting_origin); + static void PermissionDismissed(ContentSettingsType permission, + const GURL& requesting_origin); + static void PermissionRequested(ContentSettingsType permission, + const GURL& requesting_origin); + static void PermissionIgnored(ContentSettingsType permission, + const GURL& requesting_origin); private: DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionContextUmaUtil); -- cgit v1.1