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

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

Issue 14246006: Implementing timeout support for XHR (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@timeoutResourceHandle
Patch Set: Timeout support in DocumentThreadableLoader (speculative bot failure fix) Created 7 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
« no previous file with comments | « Source/core/loader/ThreadableLoader.h ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XMLHttpRequest.h
diff --git a/Source/core/xml/XMLHttpRequest.h b/Source/core/xml/XMLHttpRequest.h
index 5a1e5e3ae3568c709b922d3c27a2e30dc59020ed..69b0f07f16b5d2fbddbe6df1cdbcbf055f7c16bd 100644
--- a/Source/core/xml/XMLHttpRequest.h
+++ b/Source/core/xml/XMLHttpRequest.h
@@ -72,9 +72,7 @@ public:
};
virtual void contextDestroyed();
-#if ENABLE(XHR_TIMEOUT)
virtual void didTimeout();
-#endif
virtual bool canSuspend() const;
virtual void suspend(ReasonForSuspension);
virtual void resume();
@@ -110,10 +108,8 @@ public:
Document* optionalResponseXML() const { return m_responseDocument.get(); }
Blob* responseBlob(ExceptionCode&);
Blob* optionalResponseBlob() const { return m_responseBlob.get(); }
-#if ENABLE(XHR_TIMEOUT)
unsigned long timeout() const { return m_timeoutMilliseconds; }
void setTimeout(unsigned long timeout, ExceptionCode&);
-#endif
void sendForInspector(ExceptionCode&);
void sendForInspectorXHRReplay(PassRefPtr<FormData>, ExceptionCode&);
@@ -146,9 +142,7 @@ public:
DEFINE_ATTRIBUTE_EVENT_LISTENER(loadend);
DEFINE_ATTRIBUTE_EVENT_LISTENER(loadstart);
DEFINE_ATTRIBUTE_EVENT_LISTENER(progress);
-#if ENABLE(XHR_TIMEOUT)
DEFINE_ATTRIBUTE_EVENT_LISTENER(timeout);
-#endif
using RefCounted<XMLHttpRequest>::ref;
using RefCounted<XMLHttpRequest>::deref;
@@ -204,9 +198,7 @@ private:
String m_mimeTypeOverride;
bool m_async;
bool m_includeCredentials;
-#if ENABLE(XHR_TIMEOUT)
unsigned long m_timeoutMilliseconds;
-#endif
RefPtr<Blob> m_responseBlob;
RefPtr<ThreadableLoader> m_loader;
« no previous file with comments | « Source/core/loader/ThreadableLoader.h ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698