#include "third_party/blink/renderer/modules/service_worker/respond_with_observer.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_error_type.mojom-blink.h"
#include "third_party/blink/renderer/bindings/core/v8/script_function.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise.h"
#include "third_party/blink/renderer/bindings/core/v8/script_value.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_core.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/modules/service_worker/wait_until_observer.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
#include "v8/include/v8.h"
ServiceWorkerResponseError;
namespace blink {
void RespondWithObserver::WillDispatchEvent() { … }
void RespondWithObserver::DidDispatchEvent(
ScriptState* script_state,
DispatchEventResult dispatch_result) { … }
void RespondWithObserver::RespondWith(ScriptState* script_state,
ScriptPromiseUntyped script_promise,
ExceptionState& exception_state) { … }
void RespondWithObserver::ResponseWasRejected(ServiceWorkerResponseError error,
const ScriptValue& value) { … }
void RespondWithObserver::ResponseWasFulfilled(
ScriptState* script_state,
const ExceptionContext& exception_context,
const ScriptValue& value) { … }
bool RespondWithObserver::WaitUntil(ScriptState* script_state,
ScriptPromiseUntyped promise,
ExceptionState& exception_state) { … }
RespondWithObserver::RespondWithObserver(ExecutionContext* context,
int event_id,
WaitUntilObserver* observer)
: … { … }
void RespondWithObserver::Trace(Visitor* visitor) const { … }
}