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

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: Rebase again Created 6 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/loader/DocumentThreadableLoader.h
diff --git a/Source/core/loader/DocumentThreadableLoader.h b/Source/core/loader/DocumentThreadableLoader.h
index 604b1c048ea2db7c0aa096e318bfa5d167b317bc..f40797c2cbbe30b90969b3eca6a7af41d936da62 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&, const ResourceLoaderOptions&);
virtual ~DocumentThreadableLoader();
+ virtual void overrideTimeout(unsigned long timeout) OVERRIDE;
+
virtual void cancel() OVERRIDE;
void setDefersLoading(bool);
@@ -129,6 +131,7 @@ class DocumentThreadableLoader FINAL : public ThreadableLoader, private Resource
HTTPHeaderMap m_simpleRequestHeaders; // stores simple request headers in case of a cross-origin redirect.
Timer<DocumentThreadableLoader> m_timeoutTimer;
+ double m_requestStartedSeconds; // Time an asynchronous fetch request is started
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698