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

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

Issue 1217803002: Protect readystatechange event dispatch on XMLHttpRequest. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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: Source/core/xmlhttprequest/XMLHttpRequestProgressEventThrottle.h
diff --git a/Source/core/xmlhttprequest/XMLHttpRequestProgressEventThrottle.h b/Source/core/xmlhttprequest/XMLHttpRequestProgressEventThrottle.h
index 27d608f8baac59532d8bf55d20dd2f2688628637..7124bc7414c40b30c5b013b58941275990acca04 100644
--- a/Source/core/xmlhttprequest/XMLHttpRequestProgressEventThrottle.h
+++ b/Source/core/xmlhttprequest/XMLHttpRequestProgressEventThrottle.h
@@ -36,7 +36,7 @@
namespace blink {
class Event;
-class EventTarget;
+class XMLHttpRequest;
// This class implements the XHR2 ProgressEvent dispatching:
// "dispatch a progress event named progress about every 50ms or for every
@@ -51,7 +51,7 @@ class EventTarget;
// the spec.
class XMLHttpRequestProgressEventThrottle final : public NoBaseWillBeGarbageCollectedFinalized<XMLHttpRequestProgressEventThrottle>, public TimerBase {
public:
- static PassOwnPtrWillBeRawPtr<XMLHttpRequestProgressEventThrottle> create(EventTarget* eventTarget)
+ static PassOwnPtrWillBeRawPtr<XMLHttpRequestProgressEventThrottle> create(XMLHttpRequest* eventTarget)
{
return adoptPtrWillBeNoop(new XMLHttpRequestProgressEventThrottle(eventTarget));
}
@@ -84,7 +84,7 @@ public:
DECLARE_TRACE();
private:
- explicit XMLHttpRequestProgressEventThrottle(EventTarget*);
+ explicit XMLHttpRequestProgressEventThrottle(XMLHttpRequest*);
// The main purpose of this class is to throttle the "progress"
// ProgressEvent dispatching. This class represents such a deferred
@@ -99,7 +99,7 @@ private:
// the one holding us. With Oilpan, a simple strong Member can be used -
// this XMLHttpRequestProgressEventThrottle (part) object dies together
// with the XMLHttpRequest object.
- RawPtrWillBeMember<EventTarget> m_target;
+ RawPtrWillBeMember<XMLHttpRequest> m_target;
// A slot for the deferred "progress" ProgressEvent. When multiple events
// arrive, only the last one is stored and others are discarded.
« no previous file with comments | « Source/core/xmlhttprequest/XMLHttpRequest.cpp ('k') | Source/core/xmlhttprequest/XMLHttpRequestProgressEventThrottle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698