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

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

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.h
diff --git a/third_party/WebKit/Source/platform/network/ResourceError.h b/third_party/WebKit/Source/platform/network/ResourceError.h
index 7e0517ff09268fe83d27661ca7a257504f2555c5..cf269c3f8a8459b9d1ca77db7404896f6cfd0ba3 100644
--- a/third_party/WebKit/Source/platform/network/ResourceError.h
+++ b/third_party/WebKit/Source/platform/network/ResourceError.h
@@ -51,7 +51,8 @@ class PLATFORM_EXPORT ResourceError final {
m_isAccessCheck(false),
m_isTimeout(false),
m_staleCopyInCache(false),
- m_wasIgnoredByHandler(false) {}
+ m_wasIgnoredByHandler(false),
+ m_isCacheMiss(false) {}
ResourceError(const String& domain,
int errorCode,
@@ -66,7 +67,8 @@ class PLATFORM_EXPORT ResourceError final {
m_isAccessCheck(false),
m_isTimeout(false),
m_staleCopyInCache(false),
- m_wasIgnoredByHandler(false) {}
+ m_wasIgnoredByHandler(false),
+ m_isCacheMiss(false) {}
// Makes a deep copy. Useful for when you need to use a ResourceError on
// another thread.
@@ -99,6 +101,9 @@ class PLATFORM_EXPORT ResourceError final {
}
bool wasIgnoredByHandler() const { return m_wasIgnoredByHandler; }
+ void setIsCacheMiss(bool isCacheMiss) { m_isCacheMiss = isCacheMiss; }
+ bool isCacheMiss() const { return m_isCacheMiss; }
+
static bool compare(const ResourceError&, const ResourceError&);
private:
@@ -112,6 +117,7 @@ class PLATFORM_EXPORT ResourceError final {
bool m_isTimeout;
bool m_staleCopyInCache;
bool m_wasIgnoredByHandler;
+ bool m_isCacheMiss;
};
inline bool operator==(const ResourceError& a, const ResourceError& b) {

Powered by Google App Engine
This is Rietveld 408576698