chromium/components/safe_browsing/core/common/safe_browsing_settings_metrics.h

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_SAFE_BROWSING_CORE_COMMON_SAFE_BROWSING_SETTINGS_METRICS_H_
#define COMPONENTS_SAFE_BROWSING_CORE_COMMON_SAFE_BROWSING_SETTINGS_METRICS_H_

namespace safe_browsing {

// Enum representing possible entry point to access the Safe Browsing settings
// page. They are used to construct the suffix of
// "SafeBrowsing.Settings.UserAction" histogram.
// A Java counterpart will be generated for this enum.
// GENERATED_JAVA_ENUM_PACKAGE: (
//   org.chromium.chrome.browser.safe_browsing.metrics)
enum class SettingsAccessPoint : int {};

// Enum representing actions taken by users visiting the
// Safe Browsing settings page. They are used for logging histograms, entries
// must not be removed or reordered.
// A Java counterpart will be generated for this enum.
// GENERATED_JAVA_ENUM_PACKAGE: (
//   org.chromium.chrome.browser.safe_browsing.metrics)
enum class UserAction : int {};

// Records the user action when the user navigates to the Enhanced Protection
// page.
void LogShowEnhancedProtectionAction();

}  // namespace safe_browsing

#endif  // COMPONENTS_SAFE_BROWSING_CORE_COMMON_SAFE_BROWSING_SETTINGS_METRICS_H_