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

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

Issue 2390583002: [WIP] WebFonts cache-aware timeout adaption (Closed)
Patch Set: handle case in RemoteFontFaceSource if cache-aware deactivated in startLoad(), rebase Created 4 years, 2 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: third_party/WebKit/Source/platform/network/ResourceError.cpp
diff --git a/third_party/WebKit/Source/platform/network/ResourceError.cpp b/third_party/WebKit/Source/platform/network/ResourceError.cpp
index 965065ed211dfb684fa3e23941383294599cb99b..469914891c9ce5b05905fe607d977d9028ffcaa1 100644
--- a/third_party/WebKit/Source/platform/network/ResourceError.cpp
+++ b/third_party/WebKit/Source/platform/network/ResourceError.cpp
@@ -58,6 +58,7 @@ ResourceError ResourceError::copy() const {
errorCopy.m_isTimeout = m_isTimeout;
errorCopy.m_staleCopyInCache = m_staleCopyInCache;
errorCopy.m_wasIgnoredByHandler = m_wasIgnoredByHandler;
+ errorCopy.m_isCacheMiss = m_isCacheMiss;
return errorCopy;
}
@@ -95,6 +96,9 @@ bool ResourceError::compare(const ResourceError& a, const ResourceError& b) {
if (a.wasIgnoredByHandler() != b.wasIgnoredByHandler())
return false;
+ if (a.isCacheMiss() != b.isCacheMiss())
+ return false;
+
return true;
}

Powered by Google App Engine
This is Rietveld 408576698