#include "third_party/blink/renderer/core/xmlhttprequest/xml_http_request_progress_event_throttle.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/core/event_type_names.h"
#include "third_party/blink/renderer/core/events/progress_event.h"
#include "third_party/blink/renderer/core/inspector/inspector_trace_events.h"
#include "third_party/blink/renderer/core/probe/core_probes.h"
#include "third_party/blink/renderer/core/xmlhttprequest/xml_http_request.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/text/atomic_string.h"
namespace blink {
static constexpr base::TimeDelta kMinimumProgressEventDispatchingInterval = …;
XMLHttpRequestProgressEventThrottle::DeferredEvent::DeferredEvent() { … }
void XMLHttpRequestProgressEventThrottle::DeferredEvent::Set(
bool length_computable,
uint64_t loaded,
uint64_t total) { … }
void XMLHttpRequestProgressEventThrottle::DeferredEvent::Clear() { … }
Event* XMLHttpRequestProgressEventThrottle::DeferredEvent::Take() { … }
XMLHttpRequestProgressEventThrottle::XMLHttpRequestProgressEventThrottle(
XMLHttpRequest* target)
: … { … }
XMLHttpRequestProgressEventThrottle::~XMLHttpRequestProgressEventThrottle() =
default;
void XMLHttpRequestProgressEventThrottle::DispatchProgressEvent(
const AtomicString& type,
bool length_computable,
uint64_t loaded,
uint64_t total) { … }
void XMLHttpRequestProgressEventThrottle::DispatchReadyStateChangeEvent(
Event* event,
DeferredEventAction action) { … }
void XMLHttpRequestProgressEventThrottle::DispatchProgressProgressEvent(
Event* progress_event) { … }
void XMLHttpRequestProgressEventThrottle::Fired() { … }
void XMLHttpRequestProgressEventThrottle::Trace(Visitor* visitor) const { … }
}