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

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

Issue 4194001: Implement exponential back-off mechanism and enforce it at the URLRequestHttpJob level. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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. 6 // inside a macro to generate enum.
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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
202 // The SSL client certificate has no private key. 202 // The SSL client certificate has no private key.
203 NET_ERROR(SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY, -135) 203 NET_ERROR(SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY, -135)
204 204
205 // The certificate presented by the HTTPS Proxy was invalid. 205 // The certificate presented by the HTTPS Proxy was invalid.
206 NET_ERROR(PROXY_CERTIFICATE_INVALID, -136) 206 NET_ERROR(PROXY_CERTIFICATE_INVALID, -136)
207 207
208 // An error occurred when trying to do a name resolution (DNS). 208 // An error occurred when trying to do a name resolution (DNS).
209 NET_ERROR(NAME_RESOLUTION_FAILED, -137) 209 NET_ERROR(NAME_RESOLUTION_FAILED, -137)
210 210
211 // The request throttler module cancelled this request to avoid DDOS.
212 NET_ERROR(TEMPORARILY_THROTTLED_BY_DDOS, -138)
213
211 // Certificate error codes 214 // Certificate error codes
212 // 215 //
213 // The values of certificate error codes must be consecutive. 216 // The values of certificate error codes must be consecutive.
214 217
215 // The server responded with a certificate whose common name did not match 218 // The server responded with a certificate whose common name did not match
216 // the host name. This could mean: 219 // the host name. This could mean:
217 // 220 //
218 // 1. An attacker has redirected our traffic to his server and is 221 // 1. An attacker has redirected our traffic to his server and is
219 // presenting a certificate for which he knows the private key. 222 // presenting a certificate for which he knows the private key.
220 // 223 //
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 // Import failed - certificate already exists in database. 500 // Import failed - certificate already exists in database.
498 // Note it's a little weird this is an error but reimporting a PKCS12 is ok 501 // Note it's a little weird this is an error but reimporting a PKCS12 is ok
499 // (no-op). That's how Mozilla does it, though. 502 // (no-op). That's how Mozilla does it, though.
500 NET_ERROR(IMPORT_CERT_ALREADY_EXISTS, -704) 503 NET_ERROR(IMPORT_CERT_ALREADY_EXISTS, -704)
501 504
502 // CA import failed due to some other error. 505 // CA import failed due to some other error.
503 NET_ERROR(IMPORT_CA_CERT_FAILED, -705) 506 NET_ERROR(IMPORT_CA_CERT_FAILED, -705)
504 507
505 // Server certificate import failed due to some internal error. 508 // Server certificate import failed due to some internal error.
506 NET_ERROR(IMPORT_SERVER_CERT_FAILED, -706) 509 NET_ERROR(IMPORT_SERVER_CERT_FAILED, -706)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698