#include "third_party/blink/renderer/modules/permissions/permission_status.h"
#include "third_party/blink/public/mojom/frame/lifecycle.mojom-shared.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/core/dom/events/event.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/modules/event_target_modules_names.h"
#include "third_party/blink/renderer/modules/permissions/permission_status_listener.h"
namespace blink {
PermissionStatus* PermissionStatus::Take(PermissionStatusListener* listener,
ScriptPromiseResolverBase* resolver) { … }
PermissionStatus::PermissionStatus(PermissionStatusListener* listener,
ExecutionContext* execution_context)
: … { … }
PermissionStatus::~PermissionStatus() = default;
const AtomicString& PermissionStatus::InterfaceName() const { … }
ExecutionContext* PermissionStatus::GetExecutionContext() const { … }
void PermissionStatus::AddedEventListener(
const AtomicString& event_type,
RegisteredEventListener& registered_listener) { … }
void PermissionStatus::RemovedEventListener(
const AtomicString& event_type,
const RegisteredEventListener& registered_listener) { … }
bool PermissionStatus::HasPendingActivity() const { … }
void PermissionStatus::ContextLifecycleStateChanged(
mojom::FrameLifecycleState state) { … }
String PermissionStatus::state() const { … }
String PermissionStatus::name() const { … }
void PermissionStatus::StartListening() { … }
void PermissionStatus::StopListening() { … }
void PermissionStatus::OnPermissionStatusChange(MojoPermissionStatus status) { … }
void PermissionStatus::Trace(Visitor* visitor) const { … }
}