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_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ |
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 ClientSocketFactory* const client_socket_factory_; | 146 ClientSocketFactory* const client_socket_factory_; |
147 HostResolver* const host_resolver_; | 147 HostResolver* const host_resolver_; |
148 | 148 |
149 const SSLClientSocketContext context_; | 149 const SSLClientSocketContext context_; |
150 | 150 |
151 State next_state_; | 151 State next_state_; |
152 CompletionCallback callback_; | 152 CompletionCallback callback_; |
153 scoped_ptr<ClientSocketHandle> transport_socket_handle_; | 153 scoped_ptr<ClientSocketHandle> transport_socket_handle_; |
154 scoped_ptr<SSLClientSocket> ssl_socket_; | 154 scoped_ptr<SSLClientSocket> ssl_socket_; |
155 | 155 |
156 // The time the DoSSLConnect() method was called. | |
157 base::TimeTicks ssl_connect_start_time_; | |
158 | |
159 HttpResponseInfo error_response_info_; | 156 HttpResponseInfo error_response_info_; |
160 | 157 |
161 DISALLOW_COPY_AND_ASSIGN(SSLConnectJob); | 158 DISALLOW_COPY_AND_ASSIGN(SSLConnectJob); |
162 }; | 159 }; |
163 | 160 |
164 class NET_EXPORT_PRIVATE SSLClientSocketPool | 161 class NET_EXPORT_PRIVATE SSLClientSocketPool |
165 : public ClientSocketPool, | 162 : public ClientSocketPool, |
166 public LayeredPool, | 163 public LayeredPool, |
167 public SSLConfigService::Observer { | 164 public SSLConfigService::Observer { |
168 public: | 165 public: |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 const scoped_refptr<SSLConfigService> ssl_config_service_; | 284 const scoped_refptr<SSLConfigService> ssl_config_service_; |
288 | 285 |
289 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); | 286 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); |
290 }; | 287 }; |
291 | 288 |
292 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams); | 289 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams); |
293 | 290 |
294 } // namespace net | 291 } // namespace net |
295 | 292 |
296 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ | 293 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |