Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / content_settings / permission_context_uma_util.h
blob8d769aeb2268f5192a963f2b755a0bd522c625a8
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"
11 class GURL;
13 // Provides a convenient way of logging UMA for permission related
14 // operations.
15 class PermissionContextUmaUtil {
16 public:
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);
28 private:
29 DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionContextUmaUtil);
32 #endif // CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_UMA_UTIL_H_