| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 // The request to send. | 114 // The request to send. |
| 115 const HttpRequestInfo* request_; | 115 const HttpRequestInfo* request_; |
| 116 | 116 |
| 117 // The request header data. | 117 // The request header data. |
| 118 scoped_refptr<DrainableIOBuffer> request_headers_; | 118 scoped_refptr<DrainableIOBuffer> request_headers_; |
| 119 | 119 |
| 120 // The request body data. | 120 // The request body data. |
| 121 scoped_ptr<UploadDataStream> request_body_; | 121 scoped_ptr<UploadDataStream> request_body_; |
| 122 | 122 |
| 123 // TODO(vandebo) expected_result is only for debugging. Bug 27870 | |
| 124 int expected_request_body_result_; | |
| 125 | |
| 126 // Temporary buffer for reading. | 123 // Temporary buffer for reading. |
| 127 scoped_refptr<GrowableIOBuffer> read_buf_; | 124 scoped_refptr<GrowableIOBuffer> read_buf_; |
| 128 | 125 |
| 129 // Offset of the first unused byte in |read_buf_|. May be nonzero due to | 126 // Offset of the first unused byte in |read_buf_|. May be nonzero due to |
| 130 // a 1xx header, or body data in the same packet as header data. | 127 // a 1xx header, or body data in the same packet as header data. |
| 131 int read_buf_unused_offset_; | 128 int read_buf_unused_offset_; |
| 132 | 129 |
| 133 // The amount beyond |read_buf_unused_offset_| where the status line starts; | 130 // The amount beyond |read_buf_unused_offset_| where the status line starts; |
| 134 // -1 if not found yet. | 131 // -1 if not found yet. |
| 135 int response_header_start_offset_; | 132 int response_header_start_offset_; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 166 |
| 170 // Callback to be used when doing IO. | 167 // Callback to be used when doing IO. |
| 171 CompletionCallbackImpl<HttpStreamParser> io_callback_; | 168 CompletionCallbackImpl<HttpStreamParser> io_callback_; |
| 172 | 169 |
| 173 DISALLOW_COPY_AND_ASSIGN(HttpStreamParser); | 170 DISALLOW_COPY_AND_ASSIGN(HttpStreamParser); |
| 174 }; | 171 }; |
| 175 | 172 |
| 176 } // namespace net | 173 } // namespace net |
| 177 | 174 |
| 178 #endif // NET_HTTP_HTTP_STREAM_PARSER_H_ | 175 #endif // NET_HTTP_HTTP_STREAM_PARSER_H_ |
| OLD | NEW |