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

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

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.cpp
diff --git a/Source/platform/network/ResourceError.cpp b/Source/platform/network/ResourceError.cpp
index e0368db38aba2bba597721298e204983d2760bbf..5e5efc37d87b7c77ead456237f7cf6e2ca786117 100644
--- a/Source/platform/network/ResourceError.cpp
+++ b/Source/platform/network/ResourceError.cpp
@@ -51,6 +51,7 @@ ResourceError ResourceError::copy() const
errorCopy.m_isNull = m_isNull;
errorCopy.m_isCancellation = m_isCancellation;
errorCopy.m_isTimeout = m_isTimeout;
+ errorCopy.m_staleCopyInCache = m_staleCopyInCache;
return errorCopy;
}
@@ -80,6 +81,9 @@ bool ResourceError::compare(const ResourceError& a, const ResourceError& b)
if (a.isTimeout() != b.isTimeout())
return false;
+ if (a.staleCopyInCache() != b.staleCopyInCache())
+ return false;
+
return true;
}

Powered by Google App Engine
This is Rietveld 408576698