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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // Invoked when |job| has a WebSocketHandshakeStream ready. | 60 // Invoked when |job| has a WebSocketHandshakeStream ready. |
61 virtual void OnWebSocketHandshakeStreamReady( | 61 virtual void OnWebSocketHandshakeStreamReady( |
62 Job* job, | 62 Job* job, |
63 const SSLConfig& used_ssl_config, | 63 const SSLConfig& used_ssl_config, |
64 const ProxyInfo& used_proxy_info, | 64 const ProxyInfo& used_proxy_info, |
65 WebSocketHandshakeStreamBase* stream) = 0; | 65 WebSocketHandshakeStreamBase* stream) = 0; |
66 | 66 |
67 // Invoked when |job| fails to create a stream. | 67 // Invoked when |job| fails to create a stream. |
68 virtual void OnStreamFailed(Job* job, | 68 virtual void OnStreamFailed(Job* job, |
69 int status, | 69 int status, |
70 const SSLConfig& used_ssl_config, | 70 const SSLConfig& used_ssl_config) = 0; |
71 SSLFailureState ssl_failure_state) = 0; | |
72 | 71 |
73 // Invoked when |job| has a certificate error for the Request. | 72 // Invoked when |job| has a certificate error for the Request. |
74 virtual void OnCertificateError(Job* job, | 73 virtual void OnCertificateError(Job* job, |
75 int status, | 74 int status, |
76 const SSLConfig& used_ssl_config, | 75 const SSLConfig& used_ssl_config, |
77 const SSLInfo& ssl_info) = 0; | 76 const SSLInfo& ssl_info) = 0; |
78 | 77 |
79 // Invoked when |job| has a failure of the CONNECT request through an HTTPS | 78 // Invoked when |job| has a failure of the CONNECT request through an HTTPS |
80 // proxy. | 79 // proxy. |
81 virtual void OnHttpsProxyTunnelResponse( | 80 virtual void OnHttpsProxyTunnelResponse( |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 const SSLConfig& server_ssl_config, | 559 const SSLConfig& server_ssl_config, |
561 const SSLConfig& proxy_ssl_config, | 560 const SSLConfig& proxy_ssl_config, |
562 HostPortPair destination, | 561 HostPortPair destination, |
563 GURL origin_url, | 562 GURL origin_url, |
564 NetLog* net_log) = 0; | 563 NetLog* net_log) = 0; |
565 }; | 564 }; |
566 | 565 |
567 } // namespace net | 566 } // namespace net |
568 | 567 |
569 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 568 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
OLD | NEW |