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

Unified Diff: Source/core/xml/XMLHttpRequestProgressEventThrottle.h

Issue 62193004: XHR: separate delayed progress event flushing from dispatching of new. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | Source/core/xml/XMLHttpRequestProgressEventThrottle.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XMLHttpRequestProgressEventThrottle.h
diff --git a/Source/core/xml/XMLHttpRequestProgressEventThrottle.h b/Source/core/xml/XMLHttpRequestProgressEventThrottle.h
index 36eddc5ec41a4d32276f28e719bfa9dcd3f9afed..37cce7fc2451932d5495d4b1a1cb90ae332e84e6 100644
--- a/Source/core/xml/XMLHttpRequestProgressEventThrottle.h
+++ b/Source/core/xml/XMLHttpRequestProgressEventThrottle.h
@@ -38,6 +38,7 @@ class EventTarget;
enum ProgressEventAction {
DoNotFlushProgressEvent,
+ FlushDeferredProgressEvent,
FlushProgressEvent
};
@@ -61,7 +62,8 @@ private:
virtual void fired();
void dispatchDeferredEvents(Timer<XMLHttpRequestProgressEventThrottle>*);
- void flushProgressEvent();
+ bool flushDeferredProgressEvent();
+ void deliverProgressEvent();
bool hasEventToDispatch() const;
« no previous file with comments | « no previous file | Source/core/xml/XMLHttpRequestProgressEventThrottle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698