| 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 #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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 void SetConnectionReused(); | 68 void SetConnectionReused(); |
| 69 | 69 |
| 70 bool IsConnectionReusable() const; | 70 bool IsConnectionReusable() const; |
| 71 | 71 |
| 72 void GetSSLInfo(SSLInfo* ssl_info); | 72 void GetSSLInfo(SSLInfo* ssl_info); |
| 73 | 73 |
| 74 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); | 74 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); |
| 75 | 75 |
| 76 // ChunkCallback methods. | 76 // ChunkCallback methods. |
| 77 virtual void OnChunkAvailable(); | 77 virtual void OnChunkAvailable() OVERRIDE; |
| 78 | 78 |
| 79 private: | 79 private: |
| 80 // FOO_COMPLETE states implement the second half of potentially asynchronous | 80 // FOO_COMPLETE states implement the second half of potentially asynchronous |
| 81 // operations and don't necessarily mean that FOO is complete. | 81 // operations and don't necessarily mean that FOO is complete. |
| 82 enum State { | 82 enum State { |
| 83 STATE_NONE, | 83 STATE_NONE, |
| 84 STATE_SENDING_HEADERS, | 84 STATE_SENDING_HEADERS, |
| 85 STATE_SENDING_BODY, | 85 STATE_SENDING_BODY, |
| 86 STATE_REQUEST_SENT, | 86 STATE_REQUEST_SENT, |
| 87 STATE_READ_HEADERS, | 87 STATE_READ_HEADERS, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 size_t chunk_length_; | 197 size_t chunk_length_; |
| 198 size_t chunk_length_without_encoding_; | 198 size_t chunk_length_without_encoding_; |
| 199 bool sent_last_chunk_; | 199 bool sent_last_chunk_; |
| 200 | 200 |
| 201 DISALLOW_COPY_AND_ASSIGN(HttpStreamParser); | 201 DISALLOW_COPY_AND_ASSIGN(HttpStreamParser); |
| 202 }; | 202 }; |
| 203 | 203 |
| 204 } // namespace net | 204 } // namespace net |
| 205 | 205 |
| 206 #endif // NET_HTTP_HTTP_STREAM_PARSER_H_ | 206 #endif // NET_HTTP_HTTP_STREAM_PARSER_H_ |
| OLD | NEW |