| 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 e5a634735077fb5e9d7e023e8bbe7ef595e9266a..9cfbdd10c69ea6967fea680761fd39520a602266 100644
|
| --- a/third_party/WebKit/Source/platform/network/ResourceError.h
|
| +++ b/third_party/WebKit/Source/platform/network/ResourceError.h
|
| @@ -27,6 +27,7 @@
|
| #ifndef ResourceError_h
|
| #define ResourceError_h
|
|
|
| +#include "net/base/net_errors.h"
|
| #include "platform/PlatformExport.h"
|
| #include "wtf/Allocator.h"
|
| #include "wtf/text/WTFString.h"
|
| @@ -106,6 +107,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&);
|
|
|
|
|