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

Side by Side Diff: net/tools/balsa/balsa_enums.h

Issue 312003002: Port net/tools/balsa to non-Linux platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Android compilation error. Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « net/net.gypi ('k') | net/tools/balsa/balsa_frame.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef NET_TOOLS_BALSA_BALSA_ENUMS_H_ 5 #ifndef NET_TOOLS_BALSA_BALSA_ENUMS_H_
6 #define NET_TOOLS_BALSA_BALSA_ENUMS_H_ 6 #define NET_TOOLS_BALSA_BALSA_ENUMS_H_
7 7
8 namespace net { 8 namespace net {
9 9
10 struct BalsaFrameEnums { 10 struct BalsaFrameEnums {
11 enum ParseState { 11 enum ParseState {
12 PARSE_ERROR, 12 PARSE_ERROR,
13 READING_HEADER_AND_FIRSTLINE, 13 READING_HEADER_AND_FIRSTLINE,
14 READING_CHUNK_LENGTH, 14 READING_CHUNK_LENGTH,
15 READING_CHUNK_EXTENSION, 15 READING_CHUNK_EXTENSION,
16 READING_CHUNK_DATA, 16 READING_CHUNK_DATA,
17 READING_CHUNK_TERM, 17 READING_CHUNK_TERM,
18 READING_LAST_CHUNK_TERM, 18 READING_LAST_CHUNK_TERM,
19 READING_TRAILER, 19 READING_TRAILER,
20 READING_UNTIL_CLOSE, 20 READING_UNTIL_CLOSE,
21 READING_CONTENT, 21 READING_CONTENT,
22 MESSAGE_FULLY_READ, 22 MESSAGE_FULLY_READ,
23 NUM_STATES, 23 NUM_STATES,
24 }; 24 };
25 25
26 enum ErrorCode { 26 enum ErrorCode {
27 #undef NO_ERROR
wtc 2014/06/04 00:56:12 <WinError.h> defines the NO_ERROR macro as 0L: #d
Ryan Hamilton 2014/06/06 18:20:56 Can you add a comment this effect? Also consider w
wtc 2014/06/10 16:56:38 Done.
27 NO_ERROR = 0, // A sentinel value for convenience, none of the callbacks 28 NO_ERROR = 0, // A sentinel value for convenience, none of the callbacks
28 // should ever see this error code. 29 // should ever see this error code.
29 // Header parsing errors 30 // Header parsing errors
30 // Note that adding one to many of the REQUEST errors yields the 31 // Note that adding one to many of the REQUEST errors yields the
31 // appropriate RESPONSE error. 32 // appropriate RESPONSE error.
32 // Particularly, when parsing the first line of a request or response, 33 // Particularly, when parsing the first line of a request or response,
33 // there are three sequences of non-whitespace regardless of whether or 34 // there are three sequences of non-whitespace regardless of whether or
34 // not it is a request or response. These are listed below, in order. 35 // not it is a request or response. These are listed below, in order.
35 // 36 //
36 // firstline_a firstline_b firstline_c 37 // firstline_a firstline_b firstline_c
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 CONTENT_LENGTH_OVERFLOW, 103 CONTENT_LENGTH_OVERFLOW,
103 NO_CONTENT_LENGTH, 104 NO_CONTENT_LENGTH,
104 VALID_CONTENT_LENGTH, 105 VALID_CONTENT_LENGTH,
105 }; 106 };
106 }; 107 };
107 108
108 } // namespace net 109 } // namespace net
109 110
110 #endif // NET_TOOLS_BALSA_BALSA_ENUMS_H_ 111 #endif // NET_TOOLS_BALSA_BALSA_ENUMS_H_
111 112
OLDNEW
« no previous file with comments | « net/net.gypi ('k') | net/tools/balsa/balsa_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698