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

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

Issue 2488743003: (Re-)introduce AncestorThrottle to handle 'X-Frame-Options'. (Closed)
Patch Set: Addressed comments (@alexmos #2) Created 4 years 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 a35985193325156a9f1e860b0153787c2b4f0846..93d7e5e16c99066da9729dbd7ac0bf5ccc09ad32 100644
--- a/third_party/WebKit/Source/platform/network/ResourceError.h
+++ b/third_party/WebKit/Source/platform/network/ResourceError.h
@@ -118,6 +118,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;
+ }
void setShouldCollapseInitiator(bool shouldCollapseInitiator) {
m_shouldCollapseInitiator = shouldCollapseInitiator;

Powered by Google App Engine
This is Rietveld 408576698