Chromium Code Reviews| Index: net/http/http_stream_parser.h |
| diff --git a/net/http/http_stream_parser.h b/net/http/http_stream_parser.h |
| index a70af6560fd0b283397c7916d2fc44236ba0926e..64600ab8b0ec2f6addb0a8b043d06036e9a885b4 100644 |
| --- a/net/http/http_stream_parser.h |
| +++ b/net/http/http_stream_parser.h |
| @@ -196,12 +196,20 @@ class NET_EXPORT_PRIVATE HttpStreamParser { |
| // Check if buffers used to send the request are empty. |
| bool SendRequestBuffersEmpty(); |
| + // Sets request_ to null. |
| + void ResetRequestInfo(); |
| + |
| // Next state of the request, when the current one completes. |
| State io_state_; |
| - // The request to send. |
| + // Null when read state machine is invoked. This is to allow the stream |
| + // to be shared for reading and to possibly outlive request_'s owner |
| + // URLRequestHttpJob. |
| const HttpRequestInfo* request_; |
|
Randy Smith (Not in Mondays)
2016/09/01 20:18:31
Though (i.e. not even to the level of suggestion):
|
| + // upload progress saved while resetting the request info to null. |
| + UploadProgress upload_progress_; |
| + |
| // The request header data. May include a merged request body. |
| scoped_refptr<DrainableIOBuffer> request_headers_; |