| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 void OnHttpsProxyTunnelResponse(const HttpResponseInfo& response_info, | 180 void OnHttpsProxyTunnelResponse(const HttpResponseInfo& response_info, |
| 181 const SSLConfig& used_ssl_config, | 181 const SSLConfig& used_ssl_config, |
| 182 const ProxyInfo& used_proxy_info, | 182 const ProxyInfo& used_proxy_info, |
| 183 HttpStream* stream) override; | 183 HttpStream* stream) override; |
| 184 void OnQuicBroken() override; | 184 void OnQuicBroken() override; |
| 185 | 185 |
| 186 // BidirectionalStreamRequestInfo used when requesting the stream. | 186 // BidirectionalStreamRequestInfo used when requesting the stream. |
| 187 scoped_ptr<BidirectionalStreamRequestInfo> request_info_; | 187 scoped_ptr<BidirectionalStreamRequestInfo> request_info_; |
| 188 const BoundNetLog net_log_; | 188 const BoundNetLog net_log_; |
| 189 | 189 |
| 190 HttpNetworkSession* session_; |
| 191 |
| 190 Delegate* const delegate_; | 192 Delegate* const delegate_; |
| 191 | 193 |
| 192 // Timer used to buffer data received in short time-spans and send a single | 194 // Timer used to buffer data received in short time-spans and send a single |
| 193 // read completion notification. | 195 // read completion notification. |
| 194 scoped_ptr<base::Timer> timer_; | 196 scoped_ptr<base::Timer> timer_; |
| 195 // HttpStreamRequest used to request a BidirectionalStreamJob. This is NULL if | 197 // HttpStreamRequest used to request a BidirectionalStreamJob. This is NULL if |
| 196 // the request has been canceled or completed. | 198 // the request has been canceled or completed. |
| 197 scoped_ptr<HttpStreamRequest> stream_request_; | 199 scoped_ptr<HttpStreamRequest> stream_request_; |
| 198 // The underlying BidirectioanlStreamJob used for this stream. It is non-NULL, | 200 // The underlying BidirectioanlStreamJob used for this stream. It is non-NULL, |
| 199 // if the |stream_request_| successfully finishes. | 201 // if the |stream_request_| successfully finishes. |
| 200 scoped_ptr<BidirectionalStreamJob> stream_job_; | 202 scoped_ptr<BidirectionalStreamJob> stream_job_; |
| 201 | 203 |
| 202 DISALLOW_COPY_AND_ASSIGN(BidirectionalStream); | 204 DISALLOW_COPY_AND_ASSIGN(BidirectionalStream); |
| 203 }; | 205 }; |
| 204 | 206 |
| 205 } // namespace net | 207 } // namespace net |
| 206 | 208 |
| 207 #endif // NET_HTTP_BIDIRECTIONAL_STREAM_H_ | 209 #endif // NET_HTTP_BIDIRECTIONAL_STREAM_H_ |
| OLD | NEW |