#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/bindings/core/v8/rejected_promises.h"
#include <memory>
#include <utility>
#include "base/memory/ptr_util.h"
#include "third_party/blink/public/platform/platform.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/bindings/core/v8/v8_promise_rejection_event_init.h"
#include "third_party/blink/renderer/core/dom/events/event_target.h"
#include "third_party/blink/renderer/core/events/promise_rejection_event.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/platform/bindings/scoped_persistent.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"
#include "third_party/blink/renderer/platform/bindings/thread_debugger.h"
#include "third_party/blink/renderer/platform/bindings/v8_per_isolate_data.h"
#include "third_party/blink/renderer/platform/scheduler/public/thread.h"
#include "third_party/blink/renderer/platform/scheduler/public/thread_scheduler.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
#include "third_party/blink/renderer/platform/wtf/hash_map.h"
namespace blink {
static const unsigned kMaxReportedHandlersPendingResolution = …;
class RejectedPromises::Message final { … };
RejectedPromises::RejectedPromises() = default;
RejectedPromises::~RejectedPromises() = default;
void RejectedPromises::RejectedWithNoHandler(
ScriptState* script_state,
v8::PromiseRejectMessage data,
const String& error_message,
std::unique_ptr<SourceLocation> location,
SanitizeScriptErrors sanitize_script_errors) { … }
void RejectedPromises::HandlerAdded(v8::PromiseRejectMessage data) { … }
void RejectedPromises::Dispose() { … }
void RejectedPromises::ProcessQueue() { … }
void RejectedPromises::ProcessQueueNow(MessageQueue queue) { … }
void RejectedPromises::RevokeNow(std::unique_ptr<Message> message) { … }
}