#include "third_party/blink/public/common/frame/user_activation_state.h"
#include "base/metrics/histogram_functions.h"
#include "third_party/blink/public/mojom/frame/user_activation_notification_type.mojom-shared.h"
UserActivationNotificationType;
namespace blink {
namespace {
bool IsRestricted(UserActivationNotificationType notification_type) { … }
}
UserActivationState::UserActivationState()
: … { … }
void UserActivationState::Activate(
UserActivationNotificationType notification_type) { … }
void UserActivationState::SetHasBeenActive() { … }
void UserActivationState::Clear() { … }
bool UserActivationState::HasBeenActive() const { … }
bool UserActivationState::IsActive() const { … }
bool UserActivationState::IsActiveInternal() const { … }
bool UserActivationState::ConsumeIfActive() { … }
bool UserActivationState::LastActivationWasRestricted() const { … }
void UserActivationState::RecordPreconsumptionUma() const { … }
void UserActivationState::ActivateTransientState() { … }
void UserActivationState::DeactivateTransientState() { … }
UserActivationNotificationType UserActivationState::EffectiveNotificationType()
const { … }
}