| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 bool closed_stream_has_load_timing_info_; | 149 bool closed_stream_has_load_timing_info_; |
| 150 LoadTimingInfo closed_stream_load_timing_info_; | 150 LoadTimingInfo closed_stream_load_timing_info_; |
| 151 // After |stream_| has been closed, this keeps track of the total number of | 151 // After |stream_| has been closed, this keeps track of the total number of |
| 152 // bytes received over the network for |stream_| while it was open. | 152 // bytes received over the network for |stream_| while it was open. |
| 153 int64_t closed_stream_received_bytes_; | 153 int64_t closed_stream_received_bytes_; |
| 154 // After |stream_| has been closed, this keeps track of the total number of | 154 // After |stream_| has been closed, this keeps track of the total number of |
| 155 // bytes sent over the network for |stream_| while it was open. | 155 // bytes sent over the network for |stream_| while it was open. |
| 156 int64_t closed_stream_sent_bytes_; | 156 int64_t closed_stream_sent_bytes_; |
| 157 | 157 |
| 158 // The request to send. | 158 // The request to send. |
| 159 // Set to null when response body is starting to be read. This is to allow |
| 160 // the stream to be shared for reading and to possibly outlive request_info_'s |
| 161 // owner. |
| 159 const HttpRequestInfo* request_info_; | 162 const HttpRequestInfo* request_info_; |
| 160 | 163 |
| 161 // |response_info_| is the HTTP response data object which is filled in | 164 // |response_info_| is the HTTP response data object which is filled in |
| 162 // when a response HEADERS comes in for the stream. | 165 // when a response HEADERS comes in for the stream. |
| 163 // It is not owned by this stream object, or point to |push_response_info_|. | 166 // It is not owned by this stream object, or point to |push_response_info_|. |
| 164 HttpResponseInfo* response_info_; | 167 HttpResponseInfo* response_info_; |
| 165 | 168 |
| 166 std::unique_ptr<HttpResponseInfo> push_response_info_; | 169 std::unique_ptr<HttpResponseInfo> push_response_info_; |
| 167 | 170 |
| 168 // We don't use SpdyStream's |response_header_status_| as we | 171 // We don't use SpdyStream's |response_header_status_| as we |
| (...skipping 28 matching lines...) Expand all Loading... |
| 197 NextProto negotiated_protocol_; | 200 NextProto negotiated_protocol_; |
| 198 | 201 |
| 199 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; | 202 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; |
| 200 | 203 |
| 201 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 204 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
| 202 }; | 205 }; |
| 203 | 206 |
| 204 } // namespace net | 207 } // namespace net |
| 205 | 208 |
| 206 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 209 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
| OLD | NEW |