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

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

Issue 2321503002: (Re-)introduce AncestorThrottle to handle 'X-Frame-Options'. (Closed)
Patch Set: Ugh. Created 4 years, 3 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 6dea74de1212aa1de51655ef98a423ebf63d6882..e35325db039397dfa87277d3429f4f4c32e0ff60 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"
@@ -91,6 +92,8 @@ public:
void setWasIgnoredByHandler(bool ignoredByHandler) { m_wasIgnoredByHandler = ignoredByHandler; }
bool wasIgnoredByHandler() const { return m_wasIgnoredByHandler; }
+ bool wasBlockedByResponse() const { return m_errorCode == net::ERR_BLOCKED_BY_RESPONSE; }
+
static bool compare(const ResourceError&, const ResourceError&);
private:

Powered by Google App Engine
This is Rietveld 408576698