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_REQUEST_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ |
6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ | 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "net/base/net_export.h" | 12 #include "net/base/net_export.h" |
13 #include "net/http/http_stream_factory_impl.h" | 13 #include "net/http/http_stream_factory_impl.h" |
14 #include "net/log/net_log.h" | 14 #include "net/log/net_log.h" |
15 #include "net/socket/connection_attempts.h" | 15 #include "net/socket/connection_attempts.h" |
16 #include "net/socket/ssl_client_socket.h" | 16 #include "net/socket/ssl_client_socket.h" |
17 #include "net/spdy/spdy_session_key.h" | 17 #include "net/spdy/spdy_session_key.h" |
18 #include "net/ssl/ssl_failure_state.h" | |
19 #include "url/gurl.h" | 18 #include "url/gurl.h" |
20 | 19 |
21 namespace net { | 20 namespace net { |
22 | 21 |
23 class BidirectionalStreamImpl; | 22 class BidirectionalStreamImpl; |
24 class ClientSocketHandle; | 23 class ClientSocketHandle; |
25 class HttpStream; | 24 class HttpStream; |
26 class SpdySession; | 25 class SpdySession; |
27 | 26 |
28 class HttpStreamFactoryImpl::Request : public HttpStreamRequest { | 27 class HttpStreamFactoryImpl::Request : public HttpStreamRequest { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 void OnStreamReady(const SSLConfig& used_ssl_config, | 91 void OnStreamReady(const SSLConfig& used_ssl_config, |
93 const ProxyInfo& used_proxy_info, | 92 const ProxyInfo& used_proxy_info, |
94 HttpStream* stream); | 93 HttpStream* stream); |
95 void OnBidirectionalStreamImplReady(const SSLConfig& used_ssl_config, | 94 void OnBidirectionalStreamImplReady(const SSLConfig& used_ssl_config, |
96 const ProxyInfo& used_proxy_info, | 95 const ProxyInfo& used_proxy_info, |
97 BidirectionalStreamImpl* stream); | 96 BidirectionalStreamImpl* stream); |
98 | 97 |
99 void OnWebSocketHandshakeStreamReady(const SSLConfig& used_ssl_config, | 98 void OnWebSocketHandshakeStreamReady(const SSLConfig& used_ssl_config, |
100 const ProxyInfo& used_proxy_info, | 99 const ProxyInfo& used_proxy_info, |
101 WebSocketHandshakeStreamBase* stream); | 100 WebSocketHandshakeStreamBase* stream); |
102 void OnStreamFailed(int status, | 101 void OnStreamFailed(int status, const SSLConfig& used_ssl_config); |
103 const SSLConfig& used_ssl_config, | |
104 SSLFailureState ssl_failure_state); | |
105 void OnCertificateError(int status, | 102 void OnCertificateError(int status, |
106 const SSLConfig& used_ssl_config, | 103 const SSLConfig& used_ssl_config, |
107 const SSLInfo& ssl_info); | 104 const SSLInfo& ssl_info); |
108 void OnNeedsProxyAuth(const HttpResponseInfo& proxy_response, | 105 void OnNeedsProxyAuth(const HttpResponseInfo& proxy_response, |
109 const SSLConfig& used_ssl_config, | 106 const SSLConfig& used_ssl_config, |
110 const ProxyInfo& used_proxy_info, | 107 const ProxyInfo& used_proxy_info, |
111 HttpAuthController* auth_controller); | 108 HttpAuthController* auth_controller); |
112 void OnNeedsClientAuth(const SSLConfig& used_ssl_config, | 109 void OnNeedsClientAuth(const SSLConfig& used_ssl_config, |
113 SSLCertRequestInfo* cert_info); | 110 SSLCertRequestInfo* cert_info); |
114 void OnHttpsProxyTunnelResponse( | 111 void OnHttpsProxyTunnelResponse( |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 bool using_spdy_; | 148 bool using_spdy_; |
152 ConnectionAttempts connection_attempts_; | 149 ConnectionAttempts connection_attempts_; |
153 | 150 |
154 const HttpStreamRequest::StreamType stream_type_; | 151 const HttpStreamRequest::StreamType stream_type_; |
155 DISALLOW_COPY_AND_ASSIGN(Request); | 152 DISALLOW_COPY_AND_ASSIGN(Request); |
156 }; | 153 }; |
157 | 154 |
158 } // namespace net | 155 } // namespace net |
159 | 156 |
160 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ | 157 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ |
OLD | NEW |