| 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_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
| 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 HttpStreamRequest::StreamType stream_type() const { return stream_type_; } | 223 HttpStreamRequest::StreamType stream_type() const { return stream_type_; } |
| 224 | 224 |
| 225 std::unique_ptr<HttpStream> ReleaseStream() { return std::move(stream_); } | 225 std::unique_ptr<HttpStream> ReleaseStream() { return std::move(stream_); } |
| 226 | 226 |
| 227 void SetStream(HttpStream* http_stream) { stream_.reset(http_stream); } | 227 void SetStream(HttpStream* http_stream) { stream_.reset(http_stream); } |
| 228 | 228 |
| 229 std::unique_ptr<BidirectionalStreamImpl> ReleaseBidirectionalStream() { | 229 std::unique_ptr<BidirectionalStreamImpl> ReleaseBidirectionalStream() { |
| 230 return std::move(bidirectional_stream_impl_); | 230 return std::move(bidirectional_stream_impl_); |
| 231 } | 231 } |
| 232 | 232 |
| 233 // Returns the estimated memory usage in bytes. |
| 234 size_t EstimateMemoryUsage() const; |
| 235 |
| 233 bool is_waiting() const { return next_state_ == STATE_WAIT_COMPLETE; } | 236 bool is_waiting() const { return next_state_ == STATE_WAIT_COMPLETE; } |
| 234 const SSLConfig& server_ssl_config() const; | 237 const SSLConfig& server_ssl_config() const; |
| 235 const SSLConfig& proxy_ssl_config() const; | 238 const SSLConfig& proxy_ssl_config() const; |
| 236 const ProxyInfo& proxy_info() const; | 239 const ProxyInfo& proxy_info() const; |
| 237 | 240 |
| 238 JobType job_type() const { return job_type_; } | 241 JobType job_type() const { return job_type_; } |
| 239 | 242 |
| 240 const AlternativeService alternative_service() const { | 243 const AlternativeService alternative_service() const { |
| 241 return alternative_service_; | 244 return alternative_service_; |
| 242 } | 245 } |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 const SSLConfig& server_ssl_config, | 526 const SSLConfig& server_ssl_config, |
| 524 const SSLConfig& proxy_ssl_config, | 527 const SSLConfig& proxy_ssl_config, |
| 525 HostPortPair destination, | 528 HostPortPair destination, |
| 526 GURL origin_url, | 529 GURL origin_url, |
| 527 NetLog* net_log) = 0; | 530 NetLog* net_log) = 0; |
| 528 }; | 531 }; |
| 529 | 532 |
| 530 } // namespace net | 533 } // namespace net |
| 531 | 534 |
| 532 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 535 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
| OLD | NEW |