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

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

Issue 2390583002: [WIP] WebFonts cache-aware timeout adaption (Closed)
Patch Set: switchToSwapPeriod(), Inspector disable cache check workaround 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..0420972a44c9dcb1752454378ade36862a695550 100644
--- a/third_party/WebKit/Source/platform/network/ResourceError.cpp
+++ b/third_party/WebKit/Source/platform/network/ResourceError.cpp
@@ -26,6 +26,7 @@
#include "platform/network/ResourceError.h"
+#include "platform/network/NetworkUtils.h"
#include "platform/weborigin/KURL.h"
#include "public/platform/Platform.h"
#include "public/platform/WebURL.h"
@@ -61,6 +62,10 @@ ResourceError ResourceError::copy() const {
return errorCopy;
}
+bool ResourceError::isCacheMiss() const {
+ return NetworkUtils::isCacheMissErrorCode(m_errorCode);
+}
+
bool ResourceError::compare(const ResourceError& a, const ResourceError& b) {
if (a.isNull() && b.isNull())
return true;

Powered by Google App Engine
This is Rietveld 408576698