| OLD | NEW |
| 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 #ifndef NET_HTTP_HTTP_STREAM_PARSER_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_PARSER_H_ |
| 6 #define NET_HTTP_HTTP_STREAM_PARSER_H_ | 6 #define NET_HTTP_HTTP_STREAM_PARSER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 namespace net { | 25 namespace net { |
| 26 | 26 |
| 27 class ClientSocketHandle; | 27 class ClientSocketHandle; |
| 28 class DrainableIOBuffer; | 28 class DrainableIOBuffer; |
| 29 class GrowableIOBuffer; | 29 class GrowableIOBuffer; |
| 30 class HttpChunkedDecoder; | 30 class HttpChunkedDecoder; |
| 31 struct HttpRequestInfo; | 31 struct HttpRequestInfo; |
| 32 class HttpRequestHeaders; | 32 class HttpRequestHeaders; |
| 33 class HttpResponseInfo; | 33 class HttpResponseInfo; |
| 34 class IOBuffer; | 34 class IOBuffer; |
| 35 class IOBufferWithSize; | |
| 36 class SSLCertRequestInfo; | 35 class SSLCertRequestInfo; |
| 37 class SSLInfo; | 36 class SSLInfo; |
| 38 class UploadDataStream; | 37 class UploadDataStream; |
| 39 | 38 |
| 40 class NET_EXPORT_PRIVATE HttpStreamParser { | 39 class NET_EXPORT_PRIVATE HttpStreamParser { |
| 41 public: | 40 public: |
| 42 // Any data in |read_buffer| will be used before reading from the socket | 41 // Any data in |read_buffer| will be used before reading from the socket |
| 43 // and any data left over after parsing the stream will be put into | 42 // and any data left over after parsing the stream will be put into |
| 44 // |read_buffer|. The left over data will start at offset 0 and the | 43 // |read_buffer|. The left over data will start at offset 0 and the |
| 45 // buffer's offset will be set to the first free byte. |read_buffer| may | 44 // buffer's offset will be set to the first free byte. |read_buffer| may |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 int upload_error_; | 288 int upload_error_; |
| 290 | 289 |
| 291 base::WeakPtrFactory<HttpStreamParser> weak_ptr_factory_; | 290 base::WeakPtrFactory<HttpStreamParser> weak_ptr_factory_; |
| 292 | 291 |
| 293 DISALLOW_COPY_AND_ASSIGN(HttpStreamParser); | 292 DISALLOW_COPY_AND_ASSIGN(HttpStreamParser); |
| 294 }; | 293 }; |
| 295 | 294 |
| 296 } // namespace net | 295 } // namespace net |
| 297 | 296 |
| 298 #endif // NET_HTTP_HTTP_STREAM_PARSER_H_ | 297 #endif // NET_HTTP_HTTP_STREAM_PARSER_H_ |
| OLD | NEW |