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

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

Issue 2390583002: [WIP] WebFonts cache-aware timeout adaption (Closed)
Patch Set: check ERR_CACHE_MISS directly in ResourceError 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.h
diff --git a/third_party/WebKit/Source/platform/network/ResourceError.h b/third_party/WebKit/Source/platform/network/ResourceError.h
index 7e0517ff09268fe83d27661ca7a257504f2555c5..a707ca76a4ee683ee7b78214f8ae1d4c235c249d 100644
--- a/third_party/WebKit/Source/platform/network/ResourceError.h
+++ b/third_party/WebKit/Source/platform/network/ResourceError.h
@@ -43,6 +43,7 @@ class PLATFORM_EXPORT ResourceError final {
public:
static ResourceError cancelledError(const String& failingURL);
static ResourceError cancelledDueToAccessCheckError(const String& failingURL);
+ static ResourceError cacheMissError();
ResourceError()
: m_errorCode(0),
@@ -99,6 +100,8 @@ class PLATFORM_EXPORT ResourceError final {
}
bool wasIgnoredByHandler() const { return m_wasIgnoredByHandler; }
+ bool isCacheMiss() const;
+
static bool compare(const ResourceError&, const ResourceError&);
private:

Powered by Google App Engine
This is Rietveld 408576698