| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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_CONTROLLER_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ |
| 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ | 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "net/http/http_stream_factory_impl_job.h" | 8 #include "net/http/http_stream_factory_impl_job.h" |
| 9 #include "net/http/http_stream_factory_impl_request.h" | 9 #include "net/http/http_stream_factory_impl_request.h" |
| 10 | 10 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // Invoked when |job| has a WebSocketHandshakeStream ready. | 79 // Invoked when |job| has a WebSocketHandshakeStream ready. |
| 80 void OnWebSocketHandshakeStreamReady( | 80 void OnWebSocketHandshakeStreamReady( |
| 81 Job* job, | 81 Job* job, |
| 82 const SSLConfig& used_ssl_config, | 82 const SSLConfig& used_ssl_config, |
| 83 const ProxyInfo& used_proxy_info, | 83 const ProxyInfo& used_proxy_info, |
| 84 WebSocketHandshakeStreamBase* stream) override; | 84 WebSocketHandshakeStreamBase* stream) override; |
| 85 | 85 |
| 86 // Invoked when |job| fails to create a stream. | 86 // Invoked when |job| fails to create a stream. |
| 87 void OnStreamFailed(Job* job, | 87 void OnStreamFailed(Job* job, |
| 88 int status, | 88 int status, |
| 89 const SSLConfig& used_ssl_config, | 89 const SSLConfig& used_ssl_config) override; |
| 90 SSLFailureState ssl_failure_state) override; | |
| 91 | 90 |
| 92 // Invoked when |job| has a certificate error for the Request. | 91 // Invoked when |job| has a certificate error for the Request. |
| 93 void OnCertificateError(Job* job, | 92 void OnCertificateError(Job* job, |
| 94 int status, | 93 int status, |
| 95 const SSLConfig& used_ssl_config, | 94 const SSLConfig& used_ssl_config, |
| 96 const SSLInfo& ssl_info) override; | 95 const SSLInfo& ssl_info) override; |
| 97 | 96 |
| 98 // Invoked when |job| has a failure of the CONNECT request through an HTTPS | 97 // Invoked when |job| has a failure of the CONNECT request through an HTTPS |
| 99 // proxy. | 98 // proxy. |
| 100 void OnHttpsProxyTunnelResponse(Job* job, | 99 void OnHttpsProxyTunnelResponse(Job* job, |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 bool job_bound_; | 224 bool job_bound_; |
| 226 | 225 |
| 227 // At the point where a Job is irrevocably tied to |request_|, we set this. | 226 // At the point where a Job is irrevocably tied to |request_|, we set this. |
| 228 // It will be nulled when the |request_| is finished. | 227 // It will be nulled when the |request_| is finished. |
| 229 Job* bound_job_; | 228 Job* bound_job_; |
| 230 }; | 229 }; |
| 231 | 230 |
| 232 } // namespace net | 231 } // namespace net |
| 233 | 232 |
| 234 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ | 233 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ |
| OLD | NEW |