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

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

Issue 640593004: Fix a pair of Cronet upload bugs and add tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reorder fields Created 6 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 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 NET_ERROR(BLOCKED_BY_ADMINISTRATOR, -22) 92 NET_ERROR(BLOCKED_BY_ADMINISTRATOR, -22)
93 93
94 // The socket is already connected. 94 // The socket is already connected.
95 NET_ERROR(SOCKET_IS_CONNECTED, -23) 95 NET_ERROR(SOCKET_IS_CONNECTED, -23)
96 96
97 // The request was blocked because the forced reenrollment check is still 97 // The request was blocked because the forced reenrollment check is still
98 // pending. This error can only occur on ChromeOS. 98 // pending. This error can only occur on ChromeOS.
99 // The error can be emitted by code in chrome/browser/policy/policy_helpers.cc. 99 // The error can be emitted by code in chrome/browser/policy/policy_helpers.cc.
100 NET_ERROR(BLOCKED_ENROLLMENT_CHECK_PENDING, -24) 100 NET_ERROR(BLOCKED_ENROLLMENT_CHECK_PENDING, -24)
101 101
102 // The upload failed because the upload stream needed to be re-read, due to a
103 // retry or a redirect, but the upload stream doesn't support that operation.
104 NET_ERROR(UPLOAD_STREAM_REWIND_NOT_SUPPORTED, -25)
105
102 // A connection was closed (corresponding to a TCP FIN). 106 // A connection was closed (corresponding to a TCP FIN).
103 NET_ERROR(CONNECTION_CLOSED, -100) 107 NET_ERROR(CONNECTION_CLOSED, -100)
104 108
105 // A connection was reset (corresponding to a TCP RST). 109 // A connection was reset (corresponding to a TCP RST).
106 NET_ERROR(CONNECTION_RESET, -101) 110 NET_ERROR(CONNECTION_RESET, -101)
107 111
108 // A connection attempt was refused. 112 // A connection attempt was refused.
109 NET_ERROR(CONNECTION_REFUSED, -102) 113 NET_ERROR(CONNECTION_REFUSED, -102)
110 114
111 // A connection timed out as a result of not receiving an ACK for data sent. 115 // A connection timed out as a result of not receiving an ACK for data sent.
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 NET_ERROR(DNS_TIMED_OUT, -803) 773 NET_ERROR(DNS_TIMED_OUT, -803)
770 774
771 // The entry was not found in cache, for cache-only lookups. 775 // The entry was not found in cache, for cache-only lookups.
772 NET_ERROR(DNS_CACHE_MISS, -804) 776 NET_ERROR(DNS_CACHE_MISS, -804)
773 777
774 // Suffix search list rules prevent resolution of the given host name. 778 // Suffix search list rules prevent resolution of the given host name.
775 NET_ERROR(DNS_SEARCH_EMPTY, -805) 779 NET_ERROR(DNS_SEARCH_EMPTY, -805)
776 780
777 // Failed to sort addresses according to RFC3484. 781 // Failed to sort addresses according to RFC3484.
778 NET_ERROR(DNS_SORT_ERROR, -806) 782 NET_ERROR(DNS_SORT_ERROR, -806)
OLDNEW
« no previous file with comments | « components/cronet/android/wrapped_channel_upload_element_reader.cc ('k') | net/test/embedded_test_server/http_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698