| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 | 225 |
| 226 std::unique_ptr<BidirectionalStreamImpl> ReleaseBidirectionalStream() { | 226 std::unique_ptr<BidirectionalStreamImpl> ReleaseBidirectionalStream() { |
| 227 return std::move(bidirectional_stream_impl_); | 227 return std::move(bidirectional_stream_impl_); |
| 228 } | 228 } |
| 229 | 229 |
| 230 bool is_waiting() const { return next_state_ == STATE_WAIT_COMPLETE; } | 230 bool is_waiting() const { return next_state_ == STATE_WAIT_COMPLETE; } |
| 231 const SSLConfig& server_ssl_config() const; | 231 const SSLConfig& server_ssl_config() const; |
| 232 const SSLConfig& proxy_ssl_config() const; | 232 const SSLConfig& proxy_ssl_config() const; |
| 233 const ProxyInfo& proxy_info() const; | 233 const ProxyInfo& proxy_info() const; |
| 234 | 234 |
| 235 // Called to indicate that this job succeeded, and some other jobs | |
| 236 // will be orphaned. | |
| 237 void ReportJobSucceededForRequest(); | |
| 238 | |
| 239 JobType job_type() const { return job_type_; } | 235 JobType job_type() const { return job_type_; } |
| 240 | 236 |
| 241 const AlternativeService alternative_service() const { | 237 const AlternativeService alternative_service() const { |
| 242 return alternative_service_; | 238 return alternative_service_; |
| 243 } | 239 } |
| 244 | 240 |
| 245 const ProxyServer alternative_proxy_server() const { | 241 const ProxyServer alternative_proxy_server() const { |
| 246 return alternative_proxy_server_; | 242 return alternative_proxy_server_; |
| 247 } | 243 } |
| 248 | 244 |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 const SSLConfig& server_ssl_config, | 520 const SSLConfig& server_ssl_config, |
| 525 const SSLConfig& proxy_ssl_config, | 521 const SSLConfig& proxy_ssl_config, |
| 526 HostPortPair destination, | 522 HostPortPair destination, |
| 527 GURL origin_url, | 523 GURL origin_url, |
| 528 NetLog* net_log) = 0; | 524 NetLog* net_log) = 0; |
| 529 }; | 525 }; |
| 530 | 526 |
| 531 } // namespace net | 527 } // namespace net |
| 532 | 528 |
| 533 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 529 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
| OLD | NEW |