Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(977)

Unified Diff: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp

Issue 1690503002: Rename XMLHttpRequestProgressEventThrottle to ProgressEventThrottle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
diff --git a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
index d52c89cb03a857138134ec340e5f067479e41078..e8d7548e799de7f10b29066d0def91d439afd7e3 100644
--- a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
+++ b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
@@ -208,7 +208,7 @@ XMLHttpRequest::XMLHttpRequest(ExecutionContext* context, PassRefPtr<SecurityOri
, m_lengthDownloadedToFile(0)
, m_receivedLength(0)
, m_exceptionCode(0)
- , m_progressEventThrottle(XMLHttpRequestProgressEventThrottle::create(this))
+ , m_progressEventThrottle(ProgressEventThrottle::create(this))
, m_responseTypeCode(ResponseTypeDefault)
, m_isolatedWorldSecurityOrigin(isolatedWorldSecurityOrigin)
, m_eventDispatchRecursionLevel(0)
@@ -506,12 +506,12 @@ void XMLHttpRequest::dispatchReadyStateChangeEvent()
ScopedEventDispatchProtect protect(&m_eventDispatchRecursionLevel);
if (m_async || (m_state <= OPENED || m_state == DONE)) {
TRACE_EVENT1("devtools.timeline", "XHRReadyStateChange", "data", InspectorXhrReadyStateChangeEvent::data(executionContext(), this));
- XMLHttpRequestProgressEventThrottle::DeferredEventAction action = XMLHttpRequestProgressEventThrottle::Ignore;
+ ProgressEventThrottle::DeferredEventAction action = ProgressEventThrottle::Ignore;
if (m_state == DONE) {
if (m_error)
- action = XMLHttpRequestProgressEventThrottle::Clear;
+ action = ProgressEventThrottle::Clear;
else
- action = XMLHttpRequestProgressEventThrottle::Flush;
+ action = ProgressEventThrottle::Flush;
}
m_progressEventThrottle->dispatchReadyStateChangeEvent(Event::create(EventTypeNames::readystatechange), action);
TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "UpdateCounters", TRACE_EVENT_SCOPE_THREAD, "data", InspectorUpdateCountersEvent::data());

Powered by Google App Engine
This is Rietveld 408576698