#include "third_party/blink/renderer/modules/permissions/permission_status_listener.h"
#include "base/task/single_thread_task_runner.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "third_party/blink/renderer/core/execution_context/execution_context_lifecycle_observer.h"
#include "third_party/blink/renderer/modules/permissions/permission_utils.h"
#include "third_party/blink/renderer/modules/permissions/permissions.h"
namespace blink {
PermissionStatusListener* PermissionStatusListener::Create(
Permissions& associated_permissions_object,
ExecutionContext* execution_context,
MojoPermissionStatus status,
MojoPermissionDescriptor descriptor) { … }
PermissionStatusListener::PermissionStatusListener(
Permissions& associated_permissions_object,
ExecutionContext* execution_context,
MojoPermissionStatus status,
MojoPermissionDescriptor descriptor)
: … { … }
PermissionStatusListener::~PermissionStatusListener() = default;
void PermissionStatusListener::StartListening() { … }
void PermissionStatusListener::StopListening() { … }
void PermissionStatusListener::NotifyEventListener(
const AtomicString& event_type,
bool is_added) { … }
void PermissionStatusListener::OnPermissionStatusChange(
MojoPermissionStatus status) { … }
void PermissionStatusListener::AddObserver(Observer* observer) { … }
void PermissionStatusListener::RemoveObserver(Observer* observer) { … }
void PermissionStatusListener::AddedEventListener(
const AtomicString& event_type) { … }
void PermissionStatusListener::RemovedEventListener(
const AtomicString& event_type) { … }
bool PermissionStatusListener::HasPendingActivity() { … }
String PermissionStatusListener::state() const { … }
String PermissionStatusListener::name() const { … }
void PermissionStatusListener::Trace(Visitor* visitor) const { … }
}