#include "third_party/blink/renderer/modules/push_messaging/push_messaging_bridge.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_permission_state.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_push_subscription_options_init.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
#include "third_party/blink/renderer/modules/permissions/permission_utils.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
namespace blink {
namespace {
const char kUserVisibleOnlyRequired[] = …;
}
PushMessagingBridge* PushMessagingBridge::From(
ServiceWorkerRegistration* service_worker_registration) { … }
PushMessagingBridge::PushMessagingBridge(
ServiceWorkerRegistration& registration)
: … { … }
PushMessagingBridge::~PushMessagingBridge() = default;
const char PushMessagingBridge::kSupplementName[] = …;
ScriptPromise<V8PermissionState> PushMessagingBridge::GetPermissionState(
ScriptState* script_state,
const PushSubscriptionOptionsInit* options) { … }
void PushMessagingBridge::Trace(Visitor* visitor) const { … }
void PushMessagingBridge::DidGetPermissionState(
ScriptPromiseResolver<V8PermissionState>* resolver,
mojom::blink::PermissionStatus status) { … }
}