Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 507 // SPDY server refused the stream. Client should retry. This should never be a | 507 // SPDY server refused the stream. Client should retry. This should never be a |
| 508 // user-visible error. | 508 // user-visible error. |
| 509 NET_ERROR(SPDY_SERVER_REFUSED_STREAM, -351) | 509 NET_ERROR(SPDY_SERVER_REFUSED_STREAM, -351) |
| 510 | 510 |
| 511 // SPDY server didn't respond to the PING message. | 511 // SPDY server didn't respond to the PING message. |
| 512 NET_ERROR(SPDY_PING_FAILED, -352) | 512 NET_ERROR(SPDY_PING_FAILED, -352) |
| 513 | 513 |
| 514 // Content-Length does not match the number of bytes received. | 514 // Content-Length does not match the number of bytes received. |
| 515 NET_ERROR(CONTENT_LENGTH_MISMATCH, -353) | 515 NET_ERROR(CONTENT_LENGTH_MISMATCH, -353) |
| 516 | 516 |
| 517 // Server request for Origin Bound Cert did not contain any types we support. | |
| 518 NET_ERROR(ORIGIN_BOUND_CERT_TYPE_UNSUPPORTED, -354) | |
|
wtc
2011/12/06 00:18:05
This error code does not need to be specific to or
mattm
2011/12/06 00:54:01
Done.
| |
| 519 | |
| 520 // Server requested one type of cert, then requested a different type while the | |
| 521 // first was still being generated. | |
| 522 NET_ERROR(ORIGIN_BOUND_CERT_GENERATION_TYPE_MISMATCH, -355) | |
|
wtc
2011/12/06 00:18:05
The 300-399 range is the HTTP errors. Since these
mattm
2011/12/06 00:54:01
oops. Moved to the 1xx range since that seemed ap
| |
| 523 | |
| 517 // The cache does not have the requested entry. | 524 // The cache does not have the requested entry. |
| 518 NET_ERROR(CACHE_MISS, -400) | 525 NET_ERROR(CACHE_MISS, -400) |
| 519 | 526 |
| 520 // Unable to read from the disk cache. | 527 // Unable to read from the disk cache. |
| 521 NET_ERROR(CACHE_READ_FAILURE, -401) | 528 NET_ERROR(CACHE_READ_FAILURE, -401) |
| 522 | 529 |
| 523 // Unable to write to the disk cache. | 530 // Unable to write to the disk cache. |
| 524 NET_ERROR(CACHE_WRITE_FAILURE, -402) | 531 NET_ERROR(CACHE_WRITE_FAILURE, -402) |
| 525 | 532 |
| 526 // The operation is not supported for this entry. | 533 // The operation is not supported for this entry. |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 639 NET_ERROR(DNS_SERVER_FAILED, -802) | 646 NET_ERROR(DNS_SERVER_FAILED, -802) |
| 640 | 647 |
| 641 // DNS transaction timed out. | 648 // DNS transaction timed out. |
| 642 NET_ERROR(DNS_TIMED_OUT, -803) | 649 NET_ERROR(DNS_TIMED_OUT, -803) |
| 643 | 650 |
| 644 // The entry was not found in cache, for cache-only lookups. | 651 // The entry was not found in cache, for cache-only lookups. |
| 645 NET_ERROR(DNS_CACHE_MISS, -804) | 652 NET_ERROR(DNS_CACHE_MISS, -804) |
| 646 | 653 |
| 647 // FIXME: Take the next number. | 654 // FIXME: Take the next number. |
| 648 NET_ERROR(PIPELINE_EVICTION, -900) | 655 NET_ERROR(PIPELINE_EVICTION, -900) |
| OLD | NEW |