OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_UMA_UTIL_H_ | |
6 #define CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_UMA_UTIL_H_ | |
7 | |
8 #include "base/logging.h" | |
9 #include "chrome/common/content_settings_types.h" | |
10 | |
11 // Provides a convenient way of logging UMA for permission related | |
12 // operations. | |
13 class PermissionContextUmaUtil { | |
14 public: | |
15 static void PermissionRequested(ContentSettingsType permission); | |
16 static void PermissionGranted(ContentSettingsType permission); | |
17 static void PermissionDenied(ContentSettingsType permission); | |
18 static void PermissionDismissed(ContentSettingsType permission); | |
19 static void PermissionIgnored(ContentSettingsType permission); | |
20 | |
21 private: | |
22 PermissionContextUmaUtil() {} // only static methods allowed | |
Bernhard Bauer
2014/07/14 15:22:15
DISALLOW_IMPLICIT_CONSTRUCTORS that will do this a
Miguel Garcia
2014/07/14 16:57:50
Thanks for the tip!
| |
23 | |
24 DISALLOW_COPY_AND_ASSIGN(PermissionContextUmaUtil); | |
25 }; | |
26 | |
27 #endif // CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_UMA_UTIL_H_ | |
OLD | NEW |