Copy as Markdown
Other Tools
// -*- 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
#ifndef mozilla_GleanLibprefMetrics_h
#define mozilla_GleanLibprefMetrics_h
#include "mozilla/glean/bindings/MetricTypes.h"
namespace mozilla::glean {
namespace security {
/**
* generated from security.pref_usage_content_process
*/
struct PrefUsageContentProcessExtra {
mozilla::Maybe<nsCString> value;
std::tuple<nsTArray<nsCString>, nsTArray<nsCString>> ToFfiExtra() const {
nsTArray<nsCString> extraKeys;
nsTArray<nsCString> extraValues;
if (value) {
extraKeys.AppendElement()->AssignASCII("value");
extraValues.EmplaceBack(value.value());
}
return std::make_tuple(std::move(extraKeys), std::move(extraValues));
}
};
/**
* We block certain preferences from being sent to the content process because they contain sensitive user data. Some preferences are blocked by name, others by heuristic. If one of the preferences so blocked is accidently accessed we want to know about it so we can allowlist it or refactor the access. This event was generated to correspond to the Legacy Telemetry event security.prefUsage#contentProcess.
*/
constexpr impl::EventMetric<PrefUsageContentProcessExtra> pref_usage_content_process(436);
}
namespace preferences {
/**
* generated from preferences.prefs_file_was_invalid
* Set to true if a failure occurred reading profile/prefs.js. This metric was generated to correspond to the Legacy Telemetry scalar preferences.prefs_file_was_invalid.
*/
constexpr impl::BooleanMetric prefs_file_was_invalid(4090);
}
} // namespace mozilla::glean
#endif // mozilla_GleanLibprefMetrics_h