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

Unified Diff: Source/platform/network/ResourceError.h

Issue 138493002: Added field to error structures to signal existence of a stale copy in (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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/platform/network/ResourceError.h
diff --git a/Source/platform/network/ResourceError.h b/Source/platform/network/ResourceError.h
index 8313f59a853ae107b06517f33ed820b323ad9c7b..b4b0a044da68cedc43df13bb6822661830d5600b 100644
--- a/Source/platform/network/ResourceError.h
+++ b/Source/platform/network/ResourceError.h
@@ -43,6 +43,7 @@ public:
, m_isNull(true)
, m_isCancellation(false)
, m_isTimeout(false)
+ , m_staleCopyInCache(false)
{
}
@@ -54,6 +55,7 @@ public:
, m_isNull(false)
, m_isCancellation(false)
, m_isTimeout(false)
+ , m_staleCopyInCache(false)
{
}
@@ -72,6 +74,8 @@ public:
void setIsTimeout(bool isTimeout) { m_isTimeout = isTimeout; }
bool isTimeout() const { return m_isTimeout; }
+ void setStaleCopyInCache(bool staleCopyInCache) { m_staleCopyInCache = staleCopyInCache; }
+ bool staleCopyInCache() const { return m_staleCopyInCache; }
static bool compare(const ResourceError&, const ResourceError&);
@@ -83,6 +87,7 @@ private:
bool m_isNull;
bool m_isCancellation;
bool m_isTimeout;
+ bool m_staleCopyInCache;
};
inline bool operator==(const ResourceError& a, const ResourceError& b) { return ResourceError::compare(a, b); }

Powered by Google App Engine
This is Rietveld 408576698