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 // Derived from: | 5 // Derived from: |
6 // mozilla/netwerk/protocol/http/src/nsHttpChunkedDecoder.h | 6 // mozilla/netwerk/protocol/http/src/nsHttpChunkedDecoder.h |
7 // The license block is: | 7 // The license block is: |
8 /* ***** BEGIN LICENSE BLOCK ***** | 8 /* ***** BEGIN LICENSE BLOCK ***** |
9 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 9 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
10 * | 10 * |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 // True if waiting for the terminal CRLF of a chunk's data. | 116 // True if waiting for the terminal CRLF of a chunk's data. |
117 bool chunk_terminator_remaining_; | 117 bool chunk_terminator_remaining_; |
118 | 118 |
119 // Set to true when FilterBuf encounters the last-chunk. | 119 // Set to true when FilterBuf encounters the last-chunk. |
120 bool reached_last_chunk_; | 120 bool reached_last_chunk_; |
121 | 121 |
122 // Set to true when FilterBuf encounters the final CRLF. | 122 // Set to true when FilterBuf encounters the final CRLF. |
123 bool reached_eof_; | 123 bool reached_eof_; |
124 | 124 |
125 // The number of unfiltered bytes after the final CRLF, either extraneous | 125 // The number of extraneous unfiltered bytes after the final CRLF. |
126 // data or the first part of the next response in a pipelined stream. | |
127 int bytes_after_eof_; | 126 int bytes_after_eof_; |
128 }; | 127 }; |
129 | 128 |
130 } // namespace net | 129 } // namespace net |
131 | 130 |
132 #endif // NET_HTTP_HTTP_CHUNKED_DECODER_H_ | 131 #endif // NET_HTTP_HTTP_CHUNKED_DECODER_H_ |
OLD | NEW |