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

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

Issue 2425663002: Add an error page for resources blocked via XSS Auditor. (Closed)
Patch Set: frameNavigation test. 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..63cf1d1388c5c47cf8a7d597a1ba2dd0b1729fd8 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"
@@ -41,6 +42,11 @@ class PLATFORM_EXPORT ResourceError final {
DISALLOW_NEW();
public:
+ enum Error {
+ ACCESS_DENIED = net::ERR_ACCESS_DENIED,
+ BLOCKED_BY_AUDITOR = net::ERR_BLOCKED_BY_AUDITOR
+ };
+
static ResourceError cancelledError(const String& failingURL);
static ResourceError cancelledDueToAccessCheckError(const String& failingURL);

Powered by Google App Engine
This is Rietveld 408576698