| 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_IMPL_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ |
| 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 friend class SSLContext; | 147 friend class SSLContext; |
| 148 | 148 |
| 149 int Init(); | 149 int Init(); |
| 150 void DoReadCallback(int result); | 150 void DoReadCallback(int result); |
| 151 void DoWriteCallback(int result); | 151 void DoWriteCallback(int result); |
| 152 | 152 |
| 153 int DoHandshake(); | 153 int DoHandshake(); |
| 154 int DoHandshakeComplete(int result); | 154 int DoHandshakeComplete(int result); |
| 155 int DoChannelIDLookup(); | 155 int DoChannelIDLookup(); |
| 156 int DoChannelIDLookupComplete(int result); | 156 int DoChannelIDLookupComplete(int result); |
| 157 int DoDecodeCert(int result); |
| 158 int DoDecodeCertComplete(int result); |
| 157 int DoVerifyCert(int result); | 159 int DoVerifyCert(int result); |
| 158 int DoVerifyCertComplete(int result); | 160 int DoVerifyCertComplete(int result); |
| 159 void DoConnectCallback(int result); | 161 void DoConnectCallback(int result); |
| 160 | 162 |
| 161 void OnHandshakeIOComplete(int result); | 163 void OnHandshakeIOComplete(int result); |
| 162 | 164 |
| 163 int DoHandshakeLoop(int last_io_result); | 165 int DoHandshakeLoop(int last_io_result); |
| 164 int DoPayloadRead(IOBuffer* buf, int buf_len); | 166 int DoPayloadRead(IOBuffer* buf, int buf_len); |
| 165 int DoPayloadWrite(); | 167 int DoPayloadWrite(); |
| 166 | 168 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 // resume on the socket with a different value. | 305 // resume on the socket with a different value. |
| 304 const std::string ssl_session_cache_shard_; | 306 const std::string ssl_session_cache_shard_; |
| 305 int ssl_session_cache_lookup_count_; | 307 int ssl_session_cache_lookup_count_; |
| 306 | 308 |
| 307 enum State { | 309 enum State { |
| 308 STATE_NONE, | 310 STATE_NONE, |
| 309 STATE_HANDSHAKE, | 311 STATE_HANDSHAKE, |
| 310 STATE_HANDSHAKE_COMPLETE, | 312 STATE_HANDSHAKE_COMPLETE, |
| 311 STATE_CHANNEL_ID_LOOKUP, | 313 STATE_CHANNEL_ID_LOOKUP, |
| 312 STATE_CHANNEL_ID_LOOKUP_COMPLETE, | 314 STATE_CHANNEL_ID_LOOKUP_COMPLETE, |
| 315 STATE_DECODE_CERT, |
| 316 STATE_DECODE_CERT_COMPLETE, |
| 313 STATE_VERIFY_CERT, | 317 STATE_VERIFY_CERT, |
| 314 STATE_VERIFY_CERT_COMPLETE, | 318 STATE_VERIFY_CERT_COMPLETE, |
| 315 }; | 319 }; |
| 316 State next_handshake_state_; | 320 State next_handshake_state_; |
| 317 | 321 |
| 318 // True if the socket has been disconnected. | 322 // True if the socket has been disconnected. |
| 319 bool disconnected_; | 323 bool disconnected_; |
| 320 | 324 |
| 321 NextProto negotiated_protocol_; | 325 NextProto negotiated_protocol_; |
| 322 // Written by the |channel_id_service_|. | 326 // Written by the |channel_id_service_|. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 348 // True if PKP is bypassed due to a local trust anchor. | 352 // True if PKP is bypassed due to a local trust anchor. |
| 349 bool pkp_bypassed_; | 353 bool pkp_bypassed_; |
| 350 | 354 |
| 351 NetLogWithSource net_log_; | 355 NetLogWithSource net_log_; |
| 352 base::WeakPtrFactory<SSLClientSocketImpl> weak_factory_; | 356 base::WeakPtrFactory<SSLClientSocketImpl> weak_factory_; |
| 353 }; | 357 }; |
| 354 | 358 |
| 355 } // namespace net | 359 } // namespace net |
| 356 | 360 |
| 357 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ | 361 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ |
| OLD | NEW |