| Index: net/http/http_stream_parser.h
|
| diff --git a/net/http/http_stream_parser.h b/net/http/http_stream_parser.h
|
| index 3a4258ee9f34d0800c2b7c25ae6e8e3e8297e206..6f06cd4a6a4b2f49d01eeed8042c2d16a9399029 100644
|
| --- a/net/http/http_stream_parser.h
|
| +++ b/net/http/http_stream_parser.h
|
| @@ -135,6 +135,7 @@ class NET_EXPORT_PRIVATE HttpStreamParser {
|
| STATE_SEND_BODY,
|
| STATE_SEND_BODY_COMPLETE,
|
| STATE_SEND_REQUEST_READ_BODY_COMPLETE,
|
| + STATE_SEND_REQUEST_COMPLETE,
|
| STATE_READ_HEADERS,
|
| STATE_READ_HEADERS_COMPLETE,
|
| STATE_READ_BODY,
|
| @@ -167,6 +168,7 @@ class NET_EXPORT_PRIVATE HttpStreamParser {
|
| int DoSendBody();
|
| int DoSendBodyComplete(int result);
|
| int DoSendRequestReadBodyComplete(int result);
|
| + int DoSendRequestComplete(int result);
|
| int DoReadHeaders();
|
| int DoReadHeadersComplete(int result);
|
| int DoReadBody();
|
| @@ -191,6 +193,12 @@ class NET_EXPORT_PRIVATE HttpStreamParser {
|
| // Uploads statistics about status line compliance with RFC 7230.
|
| void ValidateStatusLine(const std::string& status_line);
|
|
|
| + // Flush buffers once the request is sent.
|
| + void FlushBuffers();
|
| +
|
| + // Check if buffers used to send the request are empty.
|
| + bool SendRequestBuffersEmpty();
|
| +
|
| // Next state of the request, when the current one completes.
|
| State io_state_;
|
|
|
|
|