Chromium Code Reviews| 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" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "net/http/bidirectional_stream_impl.h" | 13 #include "net/http/bidirectional_stream_impl.h" |
| 14 #include "net/http/http_stream_factory.h" | 14 #include "net/http/http_stream_factory.h" |
| 15 #include "net/log/net_log.h" | 15 #include "net/log/net_log.h" |
|
mmenke
2016/04/14 15:38:19
Need to include base/memory/ref_counted.h
xunjieli
2016/04/14 18:57:05
Done.
| |
| 16 | 16 |
| 17 class GURL; | 17 class GURL; |
| 18 | 18 |
| 19 namespace net { | 19 namespace net { |
| 20 | 20 |
| 21 class HttpAuthController; | 21 class HttpAuthController; |
| 22 class HttpNetworkSession; | 22 class HttpNetworkSession; |
| 23 class HttpStream; | 23 class HttpStream; |
| 24 class HttpStreamRequest; | 24 class HttpStreamRequest; |
| 25 class IOBuffer; | 25 class IOBuffer; |
| (...skipping 169 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 |