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

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

Issue 23005006: Fix XMLHttpRequest leak document when send() is called multiple times. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: unsetPendingActivity before changeState() Created 7 years, 4 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/xml/XMLHttpRequest.h
diff --git a/Source/core/xml/XMLHttpRequest.h b/Source/core/xml/XMLHttpRequest.h
index a4316f1cdbe2d7954f81735a88fbb02f9bc5c82a..6257b546c58fda5c9e9bc3bf64e25bd781f8639e 100644
--- a/Source/core/xml/XMLHttpRequest.h
+++ b/Source/core/xml/XMLHttpRequest.h
@@ -74,6 +74,11 @@ public:
ResponseTypeArrayBuffer
};
+ enum DropProtection {
+ DropProtectionSync,
+ DropProtectionAsync,
+ };
+
virtual void contextDestroyed();
virtual void didTimeout();
virtual bool canSuspend() const;
@@ -176,7 +181,7 @@ private:
void callReadyStateChangeListener();
void dropProtectionSoon();
void dropProtection(Timer<XMLHttpRequest>* = 0);
- void internalAbort();
+ void internalAbort(DropProtection = DropProtectionSync);
void clearResponse();
void clearResponseBuffers();
void clearRequest();

Powered by Google App Engine
This is Rietveld 408576698