| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_HTTP_BIDIRECTIONAL_STREAM_H_ | 5 #ifndef NET_HTTP_BIDIRECTIONAL_STREAM_H_ |
| 6 #define NET_HTTP_BIDIRECTIONAL_STREAM_H_ | 6 #define NET_HTTP_BIDIRECTIONAL_STREAM_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 // Timer used to buffer data received in short time-spans and send a single | 195 // Timer used to buffer data received in short time-spans and send a single |
| 196 // read completion notification. | 196 // read completion notification. |
| 197 scoped_ptr<base::Timer> timer_; | 197 scoped_ptr<base::Timer> timer_; |
| 198 // HttpStreamRequest used to request a BidirectionalStreamImpl. This is NULL | 198 // HttpStreamRequest used to request a BidirectionalStreamImpl. This is NULL |
| 199 // if the request has been canceled or completed. | 199 // if the request has been canceled or completed. |
| 200 scoped_ptr<HttpStreamRequest> stream_request_; | 200 scoped_ptr<HttpStreamRequest> stream_request_; |
| 201 // The underlying BidirectioanlStreamImpl used for this stream. It is | 201 // The underlying BidirectioanlStreamImpl used for this stream. It is |
| 202 // non-NULL, if the |stream_request_| successfully finishes. | 202 // non-NULL, if the |stream_request_| successfully finishes. |
| 203 scoped_ptr<BidirectionalStreamImpl> stream_impl_; | 203 scoped_ptr<BidirectionalStreamImpl> stream_impl_; |
| 204 | 204 |
| 205 // Buffer used for reading. |
| 206 scoped_refptr<IOBuffer> read_buffer_; |
| 207 // Buffer used for writing. |
| 208 scoped_refptr<IOBuffer> write_buffer_; |
| 209 // Length of |write_buffer_|. |
| 210 size_t write_buffer_len_; |
| 211 |
| 205 DISALLOW_COPY_AND_ASSIGN(BidirectionalStream); | 212 DISALLOW_COPY_AND_ASSIGN(BidirectionalStream); |
| 206 }; | 213 }; |
| 207 | 214 |
| 208 } // namespace net | 215 } // namespace net |
| 209 | 216 |
| 210 #endif // NET_HTTP_BIDIRECTIONAL_STREAM_H_ | 217 #endif // NET_HTTP_BIDIRECTIONAL_STREAM_H_ |
| OLD | NEW |