OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_BASE_SSL_CLIENT_SOCKET_WIN_H_ | 5 #ifndef NET_BASE_SSL_CLIENT_SOCKET_WIN_H_ |
6 #define NET_BASE_SSL_CLIENT_SOCKET_WIN_H_ | 6 #define NET_BASE_SSL_CLIENT_SOCKET_WIN_H_ |
7 | 7 |
8 #define SECURITY_WIN32 // Needs to be defined before including security.h | 8 #define SECURITY_WIN32 // Needs to be defined before including security.h |
9 | 9 |
10 #include <windows.h> | 10 #include <windows.h> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 int DoHandshakeReadComplete(int result); | 56 int DoHandshakeReadComplete(int result); |
57 int DoHandshakeWrite(); | 57 int DoHandshakeWrite(); |
58 int DoHandshakeWriteComplete(int result); | 58 int DoHandshakeWriteComplete(int result); |
59 int DoPayloadRead(); | 59 int DoPayloadRead(); |
60 int DoPayloadReadComplete(int result); | 60 int DoPayloadReadComplete(int result); |
61 int DoPayloadEncrypt(); | 61 int DoPayloadEncrypt(); |
62 int DoPayloadWrite(); | 62 int DoPayloadWrite(); |
63 int DoPayloadWriteComplete(int result); | 63 int DoPayloadWriteComplete(int result); |
64 | 64 |
65 int DidCompleteHandshake(); | 65 int DidCompleteHandshake(); |
| 66 static void LogConnectionTypeMetrics(PCCERT_CHAIN_CONTEXT chain_context); |
66 int VerifyServerCert(); | 67 int VerifyServerCert(); |
67 | 68 |
68 CompletionCallbackImpl<SSLClientSocketWin> io_callback_; | 69 CompletionCallbackImpl<SSLClientSocketWin> io_callback_; |
69 scoped_ptr<ClientSocket> transport_; | 70 scoped_ptr<ClientSocket> transport_; |
70 std::string hostname_; | 71 std::string hostname_; |
71 SSLConfig ssl_config_; | 72 SSLConfig ssl_config_; |
72 | 73 |
73 CompletionCallback* user_callback_; | 74 CompletionCallback* user_callback_; |
74 | 75 |
75 // Used by both Read and Write functions. | 76 // Used by both Read and Write functions. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 bool ignore_ok_result_; | 132 bool ignore_ok_result_; |
132 | 133 |
133 // True if the user has no client certificate. | 134 // True if the user has no client certificate. |
134 bool no_client_cert_; | 135 bool no_client_cert_; |
135 }; | 136 }; |
136 | 137 |
137 } // namespace net | 138 } // namespace net |
138 | 139 |
139 #endif // NET_BASE_SSL_CLIENT_SOCKET_WIN_H_ | 140 #endif // NET_BASE_SSL_CLIENT_SOCKET_WIN_H_ |
140 | 141 |
OLD | NEW |