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

Unified Diff: Source/core/platform/network/chromium/ResourceHandleInternal.h

Issue 14246006: Implementing timeout support for XHR (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@timeoutResourceHandle
Patch Set: Rebased patch Created 7 years, 8 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/platform/network/chromium/ResourceHandleInternal.h
diff --git a/Source/core/platform/network/chromium/ResourceHandleInternal.h b/Source/core/platform/network/chromium/ResourceHandleInternal.h
index 6a915516b15dff118f2e0c453dd39cdc7b0a542b..4bc415165716d0ffe3a22b171fb1b528520d37e1 100644
--- a/Source/core/platform/network/chromium/ResourceHandleInternal.h
+++ b/Source/core/platform/network/chromium/ResourceHandleInternal.h
@@ -32,6 +32,7 @@
#define ResourceHandleInternal_h
#include "ResourceRequest.h"
+#include "Timer.h"
#include <public/WebCommon.h>
#include <public/WebURLLoader.h>
#include <public/WebURLLoaderClient.h>
@@ -85,6 +86,8 @@ public:
static ResourceHandleInternal* FromResourceHandle(ResourceHandle*);
+ void timerFired(Timer<ResourceHandleInternal>*);
abarth-chromium 2013/04/19 06:54:39 Presumably this function should be private.
+
private:
RefPtr<NetworkingContext> m_context;
ResourceRequest m_request;
@@ -95,6 +98,8 @@ private:
// Used for sanity checking to make sure we don't experience illegal state
// transitions.
ConnectionState m_state;
+
+ Timer<ResourceHandleInternal> m_timer;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698