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

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: check readyState == 4 to comply with change made in r156212 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 d7a37156d1dafb15073e8d37113514285b486755..3e15efb783dad7fbf4aca5eddb6732239a707f9c 100644
--- a/Source/core/xml/XMLHttpRequest.h
+++ b/Source/core/xml/XMLHttpRequest.h
@@ -75,6 +75,11 @@ public:
ResponseTypeArrayBuffer
};
+ enum DropProtection {
+ DropProtectionSync,
+ DropProtectionAsync,
+ };
+
virtual void contextDestroyed();
virtual void didTimeout();
virtual bool canSuspend() const;
@@ -169,7 +174,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