Chromium Code Reviews| 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 PermissionGranted(ContentSettingsType permission); | |
| 16 static void PermissionDenied(ContentSettingsType permission); | |
| 17 static void PermissionDismissed(ContentSettingsType permission); | |
| 18 static void PermissionIgnored(ContentSettingsType permission); | |
| 19 | |
| 20 | |
|
Mark P
2014/07/15 20:17:41
nit: why the extra space? Did you intend to have
Miguel Garcia
2014/07/16 11:15:27
Not really, it was an artifact of the refactor.
| |
| 21 static void PermissionRequested(ContentSettingsType permission); | |
| 22 | |
| 23 private: | |
| 24 DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionContextUmaUtil); | |
| 25 }; | |
| 26 | |
| 27 #endif // CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_UMA_UTIL_H_ | |
| OLD | NEW |