blob: d364efb8f58a8d45941ede819b834bf09f0afba8 [file] [log] [blame]
// 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 "components/content_settings/core/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);
static void PermissionRequested(ContentSettingsType permission);
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionContextUmaUtil);
};
#endif // CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_UMA_UTIL_H_