#include "third_party/blink/renderer/core/streams/queue_with_sizes.h"
#include <math.h>
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/bindings/trace_wrapper_v8_reference.h"
namespace blink {
namespace {
bool IsFiniteNonNegativeNumber(double v) { … }
}
class QueueWithSizes::ValueSizePair final
: public GarbageCollected<ValueSizePair> { … };
QueueWithSizes::QueueWithSizes() = default;
v8::Local<v8::Value> QueueWithSizes::DequeueValue(v8::Isolate* isolate) { … }
void QueueWithSizes::EnqueueValueWithSize(v8::Isolate* isolate,
v8::Local<v8::Value> value,
double size,
ExceptionState& exception_state) { … }
v8::Local<v8::Value> QueueWithSizes::PeekQueueValue(v8::Isolate* isolate) { … }
void QueueWithSizes::ResetQueue() { … }
void QueueWithSizes::Trace(Visitor* visitor) const { … }
}