| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 public HttpStream { | 37 public HttpStream { |
| 38 public: | 38 public: |
| 39 explicit QuicHttpStream( | 39 explicit QuicHttpStream( |
| 40 const base::WeakPtr<QuicChromiumClientSession>& session); | 40 const base::WeakPtr<QuicChromiumClientSession>& session); |
| 41 | 41 |
| 42 ~QuicHttpStream() override; | 42 ~QuicHttpStream() override; |
| 43 | 43 |
| 44 // HttpStream implementation. | 44 // HttpStream implementation. |
| 45 int InitializeStream(const HttpRequestInfo* request_info, | 45 int InitializeStream(const HttpRequestInfo* request_info, |
| 46 RequestPriority priority, | 46 RequestPriority priority, |
| 47 const BoundNetLog& net_log, | 47 const NetLogWithSource& net_log, |
| 48 const CompletionCallback& callback) override; | 48 const CompletionCallback& callback) override; |
| 49 int SendRequest(const HttpRequestHeaders& request_headers, | 49 int SendRequest(const HttpRequestHeaders& request_headers, |
| 50 HttpResponseInfo* response, | 50 HttpResponseInfo* response, |
| 51 const CompletionCallback& callback) override; | 51 const CompletionCallback& callback) override; |
| 52 int ReadResponseHeaders(const CompletionCallback& callback) override; | 52 int ReadResponseHeaders(const CompletionCallback& callback) override; |
| 53 int ReadResponseBody(IOBuffer* buf, | 53 int ReadResponseBody(IOBuffer* buf, |
| 54 int buf_len, | 54 int buf_len, |
| 55 const CompletionCallback& callback) override; | 55 const CompletionCallback& callback) override; |
| 56 void Close(bool not_reusable) override; | 56 void Close(bool not_reusable) override; |
| 57 HttpStream* RenewStreamForAuth() override; | 57 HttpStream* RenewStreamForAuth() override; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 | 191 |
| 192 // Caller provided buffer for the ReadResponseBody() response. | 192 // Caller provided buffer for the ReadResponseBody() response. |
| 193 scoped_refptr<IOBuffer> user_buffer_; | 193 scoped_refptr<IOBuffer> user_buffer_; |
| 194 int user_buffer_len_; | 194 int user_buffer_len_; |
| 195 | 195 |
| 196 // Temporary buffer used to read the request body from UploadDataStream. | 196 // Temporary buffer used to read the request body from UploadDataStream. |
| 197 scoped_refptr<IOBufferWithSize> raw_request_body_buf_; | 197 scoped_refptr<IOBufferWithSize> raw_request_body_buf_; |
| 198 // Wraps raw_request_body_buf_ to read the remaining data progressively. | 198 // Wraps raw_request_body_buf_ to read the remaining data progressively. |
| 199 scoped_refptr<DrainableIOBuffer> request_body_buf_; | 199 scoped_refptr<DrainableIOBuffer> request_body_buf_; |
| 200 | 200 |
| 201 BoundNetLog stream_net_log_; | 201 NetLogWithSource stream_net_log_; |
| 202 | 202 |
| 203 QuicErrorCode quic_connection_error_; | 203 QuicErrorCode quic_connection_error_; |
| 204 | 204 |
| 205 // SSLInfo from the underlying QuicSession. | 205 // SSLInfo from the underlying QuicSession. |
| 206 SSLInfo ssl_info_; | 206 SSLInfo ssl_info_; |
| 207 | 207 |
| 208 // True when this stream receives a go away from server due to port migration. | 208 // True when this stream receives a go away from server due to port migration. |
| 209 bool port_migration_detected_; | 209 bool port_migration_detected_; |
| 210 | 210 |
| 211 bool found_promise_; | 211 bool found_promise_; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 222 LoadTimingInfo::ConnectTiming connect_timing_; | 222 LoadTimingInfo::ConnectTiming connect_timing_; |
| 223 | 223 |
| 224 base::WeakPtrFactory<QuicHttpStream> weak_factory_; | 224 base::WeakPtrFactory<QuicHttpStream> weak_factory_; |
| 225 | 225 |
| 226 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); | 226 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); |
| 227 }; | 227 }; |
| 228 | 228 |
| 229 } // namespace net | 229 } // namespace net |
| 230 | 230 |
| 231 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_ | 231 #endif // NET_QUIC_QUIC_HTTP_STREAM_H_ |
| OLD | NEW |