| 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 27 matching lines...) Expand all  Loading... | 
| 38  * decision by deleting the provisions above and replace them with the notice | 38  * decision by deleting the provisions above and replace them with the notice | 
| 39  * and other provisions required by the GPL or the LGPL. If you do not delete | 39  * and other provisions required by the GPL or the LGPL. If you do not delete | 
| 40  * the provisions above, a recipient may use your version of this file under | 40  * the provisions above, a recipient may use your version of this file under | 
| 41  * the terms of any one of the MPL, the GPL or the LGPL. | 41  * the terms of any one of the MPL, the GPL or the LGPL. | 
| 42  * | 42  * | 
| 43  * ***** END LICENSE BLOCK ***** */ | 43  * ***** END LICENSE BLOCK ***** */ | 
| 44 | 44 | 
| 45 #ifndef NET_HTTP_HTTP_CHUNKED_DECODER_H_ | 45 #ifndef NET_HTTP_HTTP_CHUNKED_DECODER_H_ | 
| 46 #define NET_HTTP_HTTP_CHUNKED_DECODER_H_ | 46 #define NET_HTTP_HTTP_CHUNKED_DECODER_H_ | 
| 47 | 47 | 
|  | 48 #include <stddef.h> | 
|  | 49 | 
| 48 #include <string> | 50 #include <string> | 
| 49 | 51 | 
| 50 #include "net/base/net_export.h" | 52 #include "net/base/net_export.h" | 
| 51 | 53 | 
| 52 namespace net { | 54 namespace net { | 
| 53 | 55 | 
| 54 // From RFC2617 section 3.6.1, the chunked transfer coding is defined as: | 56 // From RFC2617 section 3.6.1, the chunked transfer coding is defined as: | 
| 55 // | 57 // | 
| 56 //   Chunked-Body    = *chunk | 58 //   Chunked-Body    = *chunk | 
| 57 //                     last-chunk | 59 //                     last-chunk | 
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 122   // Set to true when FilterBuf encounters the final CRLF. | 124   // Set to true when FilterBuf encounters the final CRLF. | 
| 123   bool reached_eof_; | 125   bool reached_eof_; | 
| 124 | 126 | 
| 125   // The number of extraneous unfiltered bytes after the final CRLF. | 127   // The number of extraneous unfiltered bytes after the final CRLF. | 
| 126   int bytes_after_eof_; | 128   int bytes_after_eof_; | 
| 127 }; | 129 }; | 
| 128 | 130 | 
| 129 }  // namespace net | 131 }  // namespace net | 
| 130 | 132 | 
| 131 #endif  // NET_HTTP_HTTP_CHUNKED_DECODER_H_ | 133 #endif  // NET_HTTP_HTTP_CHUNKED_DECODER_H_ | 
| OLD | NEW | 
|---|