Index: Source/core/xml/XMLHttpRequest.h |
diff --git a/Source/core/xml/XMLHttpRequest.h b/Source/core/xml/XMLHttpRequest.h |
index ca6f9211aeeb07be634b914336dc4b8f47c2ae12..1f1a89e7201e75e1034a26c8066c9f113fae708d 100644 |
--- a/Source/core/xml/XMLHttpRequest.h |
+++ b/Source/core/xml/XMLHttpRequest.h |
@@ -109,7 +109,7 @@ public: |
void send(DOMFormData*, ExceptionState&); |
void send(ArrayBuffer*, ExceptionState&); |
void send(ArrayBufferView*, ExceptionState&); |
- void abort(); |
+ void abort(ExceptionState&); |
void setRequestHeader(const AtomicString& name, const String& value, ExceptionState&); |
void overrideMimeType(const String& override); |
String getAllResponseHeaders(ExceptionState&) const; |
@@ -216,6 +216,9 @@ private: |
RefPtr<SharedBuffer> m_binaryResponseBuilder; |
mutable RefPtr<ArrayBuffer> m_responseArrayBuffer; |
+ // Prevents reentrant of methods while m_loader->cancel() is running. |
+ bool m_preventReentrant; |
+ |
bool m_error; |
bool m_uploadEventsAllowed; |