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

Unified Diff: Source/core/loader/DocumentThreadableLoader.h

Issue 273993002: Allow XHR timeout attribute to be overridden after send(), per spec (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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/loader/DocumentThreadableLoader.h
diff --git a/Source/core/loader/DocumentThreadableLoader.h b/Source/core/loader/DocumentThreadableLoader.h
index 216840726952c946f98d07a7b05fe4ac3ada0ac7..5a8d54de23eee3c06ca5db89a581b1cb03b23571 100644
--- a/Source/core/loader/DocumentThreadableLoader.h
+++ b/Source/core/loader/DocumentThreadableLoader.h
@@ -58,6 +58,8 @@ class DocumentThreadableLoader FINAL : public ThreadableLoader, private Resource
static PassRefPtr<DocumentThreadableLoader> create(Document&, ThreadableLoaderClient*, const ResourceRequest&, const ThreadableLoaderOptions&);
virtual ~DocumentThreadableLoader();
+ virtual void overrideTimeout(unsigned long timeout) OVERRIDE;
+
virtual void cancel() OVERRIDE;
void setDefersLoading(bool);
@@ -101,6 +103,7 @@ class DocumentThreadableLoader FINAL : public ThreadableLoader, private Resource
OwnPtr<ResourceRequest> m_actualRequest; // non-null during Access Control preflight checks
HTTPHeaderMap m_simpleRequestHeaders; // stores simple request headers in case of a cross-origin redirect.
Timer<DocumentThreadableLoader> m_timeoutTimer;
+ double m_requestStarted;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698