#include "third_party/blink/renderer/modules/notifications/service_worker_registration_notifications.h"
#include <utility>
#include "base/memory/scoped_refptr.h"
#include "base/metrics/histogram_functions.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/web_security_origin.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_get_notification_options.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_notification_options.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/modules/notifications/notification.h"
#include "third_party/blink/renderer/modules/notifications/notification_data.h"
#include "third_party/blink/renderer/modules/notifications/notification_manager.h"
#include "third_party/blink/renderer/modules/notifications/notification_metrics.h"
#include "third_party/blink/renderer/modules/notifications/notification_resources_loader.h"
#include "third_party/blink/renderer/modules/service_worker/service_worker_registration.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
namespace blink {
ServiceWorkerRegistrationNotifications::ServiceWorkerRegistrationNotifications(
ExecutionContext* context,
ServiceWorkerRegistration* registration)
: … { … }
ScriptPromise<IDLUndefined>
ServiceWorkerRegistrationNotifications::showNotification(
ScriptState* script_state,
ServiceWorkerRegistration& registration,
const String& title,
const NotificationOptions* options,
ExceptionState& exception_state) { … }
ScriptPromise<IDLSequence<Notification>>
ServiceWorkerRegistrationNotifications::getNotifications(
ScriptState* script_state,
ServiceWorkerRegistration& registration,
const GetNotificationOptions* options) { … }
void ServiceWorkerRegistrationNotifications::ContextDestroyed() { … }
void ServiceWorkerRegistrationNotifications::Trace(Visitor* visitor) const { … }
const char ServiceWorkerRegistrationNotifications::kSupplementName[] = …;
ServiceWorkerRegistrationNotifications&
ServiceWorkerRegistrationNotifications::From(
ExecutionContext* execution_context,
ServiceWorkerRegistration& registration) { … }
void ServiceWorkerRegistrationNotifications::PrepareShow(
mojom::blink::NotificationDataPtr data,
ScriptPromiseResolver<IDLUndefined>* resolver) { … }
void ServiceWorkerRegistrationNotifications::DidLoadResources(
scoped_refptr<const SecurityOrigin> origin,
mojom::blink::NotificationDataPtr data,
ScriptPromiseResolver<IDLUndefined>* resolver,
NotificationResourcesLoader* loader) { … }
}