| 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 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 224 |
| 225 std::unique_ptr<BidirectionalStreamImpl> ReleaseBidirectionalStream() { | 225 std::unique_ptr<BidirectionalStreamImpl> ReleaseBidirectionalStream() { |
| 226 return std::move(bidirectional_stream_impl_); | 226 return std::move(bidirectional_stream_impl_); |
| 227 } | 227 } |
| 228 | 228 |
| 229 bool is_waiting() const { return next_state_ == STATE_WAIT_COMPLETE; } | 229 bool is_waiting() const { return next_state_ == STATE_WAIT_COMPLETE; } |
| 230 const SSLConfig& server_ssl_config() const; | 230 const SSLConfig& server_ssl_config() const; |
| 231 const SSLConfig& proxy_ssl_config() const; | 231 const SSLConfig& proxy_ssl_config() const; |
| 232 const ProxyInfo& proxy_info() const; | 232 const ProxyInfo& proxy_info() const; |
| 233 | 233 |
| 234 // Called to indicate that this job succeeded, and some other jobs | |
| 235 // will be orphaned. | |
| 236 void ReportJobSucceededForRequest(); | |
| 237 | |
| 238 JobType job_type() const { return job_type_; } | 234 JobType job_type() const { return job_type_; } |
| 239 | 235 |
| 240 const AlternativeService alternative_service() const { | 236 const AlternativeService alternative_service() const { |
| 241 return alternative_service_; | 237 return alternative_service_; |
| 242 } | 238 } |
| 243 | 239 |
| 244 const ProxyServer alternative_proxy_server() const { | 240 const ProxyServer alternative_proxy_server() const { |
| 245 return alternative_proxy_server_; | 241 return alternative_proxy_server_; |
| 246 } | 242 } |
| 247 | 243 |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 const SSLConfig& server_ssl_config, | 529 const SSLConfig& server_ssl_config, |
| 534 const SSLConfig& proxy_ssl_config, | 530 const SSLConfig& proxy_ssl_config, |
| 535 HostPortPair destination, | 531 HostPortPair destination, |
| 536 GURL origin_url, | 532 GURL origin_url, |
| 537 NetLog* net_log) = 0; | 533 NetLog* net_log) = 0; |
| 538 }; | 534 }; |
| 539 | 535 |
| 540 } // namespace net | 536 } // namespace net |
| 541 | 537 |
| 542 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 538 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
| OLD | NEW |