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 <set> | 8 #include <set> |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "net/http/http_stream_factory_impl.h" | 10 #include "net/http/http_stream_factory_impl.h" |
11 #include "net/log/net_log.h" | 11 #include "net/log/net_log.h" |
12 #include "net/socket/connection_attempts.h" | 12 #include "net/socket/connection_attempts.h" |
13 #include "net/socket/ssl_client_socket.h" | 13 #include "net/socket/ssl_client_socket.h" |
14 #include "net/spdy/spdy_session_key.h" | 14 #include "net/spdy/spdy_session_key.h" |
| 15 #include "net/ssl/ssl_failure_state.h" |
15 #include "url/gurl.h" | 16 #include "url/gurl.h" |
16 | 17 |
17 namespace net { | 18 namespace net { |
18 | 19 |
19 class ClientSocketHandle; | 20 class ClientSocketHandle; |
20 class HttpStream; | 21 class HttpStream; |
21 class SpdySession; | 22 class SpdySession; |
22 | 23 |
23 class HttpStreamFactoryImpl::Request : public HttpStreamRequest { | 24 class HttpStreamFactoryImpl::Request : public HttpStreamRequest { |
24 public: | 25 public: |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // actually subclass HttpStreamRequest::Delegate. | 75 // actually subclass HttpStreamRequest::Delegate. |
75 | 76 |
76 void OnStreamReady(Job* job, | 77 void OnStreamReady(Job* job, |
77 const SSLConfig& used_ssl_config, | 78 const SSLConfig& used_ssl_config, |
78 const ProxyInfo& used_proxy_info, | 79 const ProxyInfo& used_proxy_info, |
79 HttpStream* stream); | 80 HttpStream* stream); |
80 void OnWebSocketHandshakeStreamReady(Job* job, | 81 void OnWebSocketHandshakeStreamReady(Job* job, |
81 const SSLConfig& used_ssl_config, | 82 const SSLConfig& used_ssl_config, |
82 const ProxyInfo& used_proxy_info, | 83 const ProxyInfo& used_proxy_info, |
83 WebSocketHandshakeStreamBase* stream); | 84 WebSocketHandshakeStreamBase* stream); |
84 void OnStreamFailed(Job* job, int status, const SSLConfig& used_ssl_config); | 85 void OnStreamFailed(Job* job, |
| 86 int status, |
| 87 const SSLConfig& used_ssl_config, |
| 88 SSLFailureState ssl_failure_state); |
85 void OnCertificateError(Job* job, | 89 void OnCertificateError(Job* job, |
86 int status, | 90 int status, |
87 const SSLConfig& used_ssl_config, | 91 const SSLConfig& used_ssl_config, |
88 const SSLInfo& ssl_info); | 92 const SSLInfo& ssl_info); |
89 void OnNeedsProxyAuth(Job* job, | 93 void OnNeedsProxyAuth(Job* job, |
90 const HttpResponseInfo& proxy_response, | 94 const HttpResponseInfo& proxy_response, |
91 const SSLConfig& used_ssl_config, | 95 const SSLConfig& used_ssl_config, |
92 const ProxyInfo& used_proxy_info, | 96 const ProxyInfo& used_proxy_info, |
93 HttpAuthController* auth_controller); | 97 HttpAuthController* auth_controller); |
94 void OnNeedsClientAuth(Job* job, | 98 void OnNeedsClientAuth(Job* job, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 NextProto protocol_negotiated_; | 144 NextProto protocol_negotiated_; |
141 bool using_spdy_; | 145 bool using_spdy_; |
142 ConnectionAttempts connection_attempts_; | 146 ConnectionAttempts connection_attempts_; |
143 | 147 |
144 DISALLOW_COPY_AND_ASSIGN(Request); | 148 DISALLOW_COPY_AND_ASSIGN(Request); |
145 }; | 149 }; |
146 | 150 |
147 } // namespace net | 151 } // namespace net |
148 | 152 |
149 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ | 153 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ |
OLD | NEW |