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 1d5715df83f1b61eded66d6156ad4a78c32f398c..ee075eca30edaa3037c7826487a3185be014e4eb 100644 |
--- a/third_party/WebKit/Source/platform/network/ResourceError.h |
+++ b/third_party/WebKit/Source/platform/network/ResourceError.h |
@@ -112,6 +112,9 @@ class PLATFORM_EXPORT ResourceError final { |
void setIsCacheMiss(bool isCacheMiss) { m_isCacheMiss = isCacheMiss; } |
bool isCacheMiss() const { return m_isCacheMiss; } |
+ bool wasBlockedByResponse() const { |
+ return m_errorCode == net::ERR_BLOCKED_BY_RESPONSE; |
+ } |
static bool compare(const ResourceError&, const ResourceError&); |