| 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_SPDY_SPDY_HTTP_STREAM_H_ | 5 #ifndef NET_SPDY_SPDY_HTTP_STREAM_H_ |
| 6 #define NET_SPDY_SPDY_HTTP_STREAM_H_ | 6 #define NET_SPDY_SPDY_HTTP_STREAM_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 // bytes received over the network for |stream_| while it was open. | 148 // bytes received over the network for |stream_| while it was open. |
| 149 int64_t closed_stream_received_bytes_; | 149 int64_t closed_stream_received_bytes_; |
| 150 // After |stream_| has been closed, this keeps track of the total number of | 150 // After |stream_| has been closed, this keeps track of the total number of |
| 151 // bytes sent over the network for |stream_| while it was open. | 151 // bytes sent over the network for |stream_| while it was open. |
| 152 int64_t closed_stream_sent_bytes_; | 152 int64_t closed_stream_sent_bytes_; |
| 153 | 153 |
| 154 // The request to send. | 154 // The request to send. |
| 155 const HttpRequestInfo* request_info_; | 155 const HttpRequestInfo* request_info_; |
| 156 | 156 |
| 157 // |response_info_| is the HTTP response data object which is filled in | 157 // |response_info_| is the HTTP response data object which is filled in |
| 158 // when a SYN_REPLY comes in for the stream. | 158 // when a response HEADERS comes in for the stream. |
| 159 // It is not owned by this stream object, or point to |push_response_info_|. | 159 // It is not owned by this stream object, or point to |push_response_info_|. |
| 160 HttpResponseInfo* response_info_; | 160 HttpResponseInfo* response_info_; |
| 161 | 161 |
| 162 std::unique_ptr<HttpResponseInfo> push_response_info_; | 162 std::unique_ptr<HttpResponseInfo> push_response_info_; |
| 163 | 163 |
| 164 // We don't use SpdyStream's |response_header_status_| as we | 164 // We don't use SpdyStream's |response_header_status_| as we |
| 165 // sometimes call back into our delegate before it is updated. | 165 // sometimes call back into our delegate before it is updated. |
| 166 SpdyResponseHeadersStatus response_headers_status_; | 166 SpdyResponseHeadersStatus response_headers_status_; |
| 167 | 167 |
| 168 // We buffer the response body as it arrives asynchronously from the stream. | 168 // We buffer the response body as it arrives asynchronously from the stream. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 193 NextProto protocol_negotiated_; | 193 NextProto protocol_negotiated_; |
| 194 | 194 |
| 195 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; | 195 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; |
| 196 | 196 |
| 197 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 197 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
| 198 }; | 198 }; |
| 199 | 199 |
| 200 } // namespace net | 200 } // namespace net |
| 201 | 201 |
| 202 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 202 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
| OLD | NEW |