| 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_QUIC_QUIC_HTTP_STREAM_H_ | 5 #ifndef NET_QUIC_QUIC_HTTP_STREAM_H_ |
| 6 #define NET_QUIC_QUIC_HTTP_STREAM_H_ | 6 #define NET_QUIC_QUIC_HTTP_STREAM_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 // Serialized request headers. | 164 // Serialized request headers. |
| 165 SpdyHeaderBlock request_headers_; | 165 SpdyHeaderBlock request_headers_; |
| 166 | 166 |
| 167 bool response_headers_received_; | 167 bool response_headers_received_; |
| 168 | 168 |
| 169 // Serialized HTTP request. | 169 // Serialized HTTP request. |
| 170 std::string request_; | 170 std::string request_; |
| 171 | 171 |
| 172 // Number of bytes received when the stream was closed. | 172 // Number of bytes received when the stream was closed. |
| 173 int64 closed_stream_received_bytes_; | 173 int64 closed_stream_received_bytes_; |
| 174 // Number of bytes sent when the stream was closed. |
| 175 int64_t closed_stream_sent_bytes_; |
| 174 | 176 |
| 175 // The caller's callback to be used for asynchronous operations. | 177 // The caller's callback to be used for asynchronous operations. |
| 176 CompletionCallback callback_; | 178 CompletionCallback callback_; |
| 177 | 179 |
| 178 // Caller provided buffer for the ReadResponseBody() response. | 180 // Caller provided buffer for the ReadResponseBody() response. |
| 179 scoped_refptr<IOBuffer> user_buffer_; | 181 scoped_refptr<IOBuffer> user_buffer_; |
| 180 int user_buffer_len_; | 182 int user_buffer_len_; |
| 181 | 183 |
| 182 // Temporary buffer used to read the request body from UploadDataStream. | 184 // Temporary buffer used to read the request body from UploadDataStream. |
| 183 scoped_refptr<IOBufferWithSize> raw_request_body_buf_; | 185 scoped_refptr<IOBufferWithSize> raw_request_body_buf_; |
| 184 // Wraps raw_request_body_buf_ to read the remaining data progressively. | 186 // Wraps raw_request_body_buf_ to read the remaining data progressively. |
| 185 scoped_refptr<DrainableIOBuffer> request_body_buf_; | 187 scoped_refptr<DrainableIOBuffer> request_body_buf_; |
| 186 | 188 |
| 187 BoundNetLog stream_net_log_; | 189 BoundNetLog stream_net_log_; |
| 188 | 190 |
| 189 #ifdef TEMP_INSTRUMENTATION_468529 | 191 #ifdef TEMP_INSTRUMENTATION_468529 |
| 190 // TODO(rtenneti): Temporary while investigating crbug.com/468529 | 192 // TODO(rtenneti): Temporary while investigating crbug.com/468529 |
| 191 Liveness liveness_ = ALIVE; | 193 Liveness liveness_ = ALIVE; |
| 192 base::debug::StackTrace stack_trace_; | 194 base::debug::StackTrace stack_trace_; |
| 193 #endif | 195 #endif |
| 194 | 196 |
| 195 base::WeakPtrFactory<QuicHttpStream> weak_factory_; | 197 base::WeakPtrFactory<QuicHttpStream> weak_factory_; |
| 196 | 198 |
| 197 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); | 199 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); |
| 198 }; | 200 }; |
| 199 | 201 |
| 200 } // namespace net | 202 } // namespace net |
| 201 | 203 |
| 202 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_ | 204 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_ |
| OLD | NEW |