// -*- mode: C++ -*-
// AUTOGENERATED BY glean_parser. DO NOT EDIT.
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef mozilla_GleanDomNotificationMetrics_h
#define mozilla_GleanDomNotificationMetrics_h
#include "mozilla/glean/bindings/MetricTypes.h"
namespace mozilla::glean {
namespace web_notification {
/**
* generated from web_notification.insecure_context_permission_request
* Whether we saw a permission request from an insecure context.
*/
constexpr impl::CounterMetric<impl::CounterType::eBaseOrLabeled> insecure_context_permission_request(4098);
/**
* generated from web_notification.permission_origin
*/
enum class PermissionOriginLabel: uint16_t {
eFirstParty = 0,
eThirdParty = 1,
eNestedFirstParty = 2,
e__Other__,
};
/**
* The category of the origin that retrieves Notification.permission.
*/
constexpr impl::Labeled<impl::CounterMetric<impl::CounterType::eBaseOrLabeled>, PermissionOriginLabel> permission_origin(4099);
/**
* generated from web_notification.request_permission_origin
*/
enum class RequestPermissionOriginLabel: uint16_t {
eFirstParty = 0,
eThirdParty = 1,
eNestedFirstParty = 2,
e__Other__,
};
/**
* The category of the origin that calls Notification.requestPermission().
*/
constexpr impl::Labeled<impl::CounterMetric<impl::CounterType::eBaseOrLabeled>, RequestPermissionOriginLabel> request_permission_origin(4100);
/**
* generated from web_notification.show_origin
*/
enum class ShowOriginLabel: uint16_t {
eFirstParty = 0,
eThirdParty = 1,
eNestedFirstParty = 2,
e__Other__,
};
/**
* The category of the origin that calls new Notification/showNotification().
*/
constexpr impl::Labeled<impl::CounterMetric<impl::CounterType::eBaseOrLabeled>, ShowOriginLabel> show_origin(4101);
/**
* generated from web_notification.show_safe_browsing_block
* The rate of notification show attempts that are blocked because the origin is on the Safe Browsing blocklist (phishing, malware, etc.). The numerator is the number of blocked attempts, and the denominator is the total number of show attempts that passed the initial permission check.
*/
constexpr impl::RateMetric show_safe_browsing_block(4102);
}
} // namespace mozilla::glean
#endif // mozilla_GleanDomNotificationMetrics_h