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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_UMA_UTIL_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_UMA_UTIL_H_
8 #include "base/logging.h"
9 #include "components/content_settings/core/common/content_settings_types.h"
13 // Provides a convenient way of logging UMA for permission related
15 class PermissionContextUmaUtil
{
17 static void PermissionGranted(ContentSettingsType permission
,
18 const GURL
& requesting_origin
);
19 static void PermissionDenied(ContentSettingsType permission
,
20 const GURL
& requesting_origin
);
21 static void PermissionDismissed(ContentSettingsType permission
,
22 const GURL
& requesting_origin
);
23 static void PermissionRequested(ContentSettingsType permission
,
24 const GURL
& requesting_origin
);
25 static void PermissionIgnored(ContentSettingsType permission
,
26 const GURL
& requesting_origin
);
29 DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionContextUmaUtil
);
32 #endif // CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_UMA_UTIL_H_