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

Side by Side Diff: net/base/net_error_list.h

Issue 2425663002: Add an error page for resources blocked via XSS Auditor. (Closed)
Patch Set: Test. 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file intentionally does not have header guards, it's included 5 // This file intentionally does not have header guards, it's included
6 // inside a macro to generate enum values. 6 // inside a macro to generate enum values.
7 7
8 // This file contains the list of network errors. 8 // This file contains the list of network errors.
9 9
10 // 10 //
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // The request failed because the URLRequestContext is shutting down, or has 106 // The request failed because the URLRequestContext is shutting down, or has
107 // been shut down. 107 // been shut down.
108 NET_ERROR(CONTEXT_SHUT_DOWN, -26) 108 NET_ERROR(CONTEXT_SHUT_DOWN, -26)
109 109
110 // The request failed because the response was delivered along with requirements 110 // The request failed because the response was delivered along with requirements
111 // which are not met ('X-Frame-Options' and 'Content-Security-Policy' ancestor 111 // which are not met ('X-Frame-Options' and 'Content-Security-Policy' ancestor
112 // checks, for instance). 112 // checks, for instance).
113 NET_ERROR(BLOCKED_BY_RESPONSE, -27) 113 NET_ERROR(BLOCKED_BY_RESPONSE, -27)
114 114
115 // The request failed after the response was received, based on client-side
116 // heuristics that point to the possiblility of a cross-site scripting attack.
117 NET_ERROR(BLOCKED_BY_XSS_AUDITOR, -28)
118
115 // A connection was closed (corresponding to a TCP FIN). 119 // A connection was closed (corresponding to a TCP FIN).
116 NET_ERROR(CONNECTION_CLOSED, -100) 120 NET_ERROR(CONNECTION_CLOSED, -100)
117 121
118 // A connection was reset (corresponding to a TCP RST). 122 // A connection was reset (corresponding to a TCP RST).
119 NET_ERROR(CONNECTION_RESET, -101) 123 NET_ERROR(CONNECTION_RESET, -101)
120 124
121 // A connection attempt was refused. 125 // A connection attempt was refused.
122 NET_ERROR(CONNECTION_REFUSED, -102) 126 NET_ERROR(CONNECTION_REFUSED, -102)
123 127
124 // A connection timed out as a result of not receiving an ACK for data sent. 128 // A connection timed out as a result of not receiving an ACK for data sent.
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 NET_ERROR(DNS_TIMED_OUT, -803) 844 NET_ERROR(DNS_TIMED_OUT, -803)
841 845
842 // The entry was not found in cache, for cache-only lookups. 846 // The entry was not found in cache, for cache-only lookups.
843 NET_ERROR(DNS_CACHE_MISS, -804) 847 NET_ERROR(DNS_CACHE_MISS, -804)
844 848
845 // Suffix search list rules prevent resolution of the given host name. 849 // Suffix search list rules prevent resolution of the given host name.
846 NET_ERROR(DNS_SEARCH_EMPTY, -805) 850 NET_ERROR(DNS_SEARCH_EMPTY, -805)
847 851
848 // Failed to sort addresses according to RFC3484. 852 // Failed to sort addresses according to RFC3484.
849 NET_ERROR(DNS_SORT_ERROR, -806) 853 NET_ERROR(DNS_SORT_ERROR, -806)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698