Chromium Code Reviews| Index: 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 |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8cbf3ee29d6e6cc831c421852e9edf2a306a4ef9 |
| --- /dev/null |
| +++ b/chrome/browser/content_settings/permission_context_uma_util.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_UMA_UTIL_H_ |
| +#define CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_UMA_UTIL_H_ |
| + |
| +#include "base/logging.h" |
| +#include "chrome/common/content_settings_types.h" |
| + |
| +// 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); |
| + |
| + |
|
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.
|
| + static void PermissionRequested(ContentSettingsType permission); |
| + |
| + private: |
| + DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionContextUmaUtil); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_UMA_UTIL_H_ |