Chromium Code Reviews| 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_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_H_ |
| 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 81 // | 81 // |
| 82 // TODO(sergeyu): Move this method to the SSLSocket interface and | 82 // TODO(sergeyu): Move this method to the SSLSocket interface and |
| 83 // implemented in SSLServerSocket too. | 83 // implemented in SSLServerSocket too. |
| 84 virtual void GetSSLInfo(SSLInfo* ssl_info) = 0; | 84 virtual void GetSSLInfo(SSLInfo* ssl_info) = 0; |
| 85 | 85 |
| 86 // Gets the SSL CertificateRequest info of the socket after Connect failed | 86 // Gets the SSL CertificateRequest info of the socket after Connect failed |
| 87 // with ERR_SSL_CLIENT_AUTH_CERT_NEEDED. | 87 // with ERR_SSL_CLIENT_AUTH_CERT_NEEDED. |
| 88 virtual void GetSSLCertRequestInfo( | 88 virtual void GetSSLCertRequestInfo( |
| 89 SSLCertRequestInfo* cert_request_info) = 0; | 89 SSLCertRequestInfo* cert_request_info) = 0; |
| 90 | 90 |
| 91 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; | |
|
wtc
2012/03/30 21:19:14
Add a
// StreamSocket:
comment here.
Ryan Hamilton
2012/03/30 21:53:17
Done.
| |
| 92 | |
| 91 // Get the application level protocol that we negotiated with the server. | 93 // Get the application level protocol that we negotiated with the server. |
| 92 // *proto is set to the resulting protocol (n.b. that the string may have | 94 // *proto is set to the resulting protocol (n.b. that the string may have |
| 93 // embedded NULs). | 95 // embedded NULs). |
| 94 // kNextProtoUnsupported: *proto is cleared. | 96 // kNextProtoUnsupported: *proto is cleared. |
| 95 // kNextProtoNegotiated: *proto is set to the negotiated protocol. | 97 // kNextProtoNegotiated: *proto is set to the negotiated protocol. |
| 96 // kNextProtoNoOverlap: *proto is set to the first protocol in the | 98 // kNextProtoNoOverlap: *proto is set to the first protocol in the |
| 97 // supported list. | 99 // supported list. |
| 98 // *server_protos is set to the server advertised protocols. | 100 // *server_protos is set to the server advertised protocols. |
| 99 virtual NextProtoStatus GetNextProto(std::string* proto, | 101 virtual NextProtoStatus GetNextProto(std::string* proto, |
| 100 std::string* server_protos) = 0; | 102 std::string* server_protos) = 0; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 151 // Protocol that we negotiated with the server. | 153 // Protocol that we negotiated with the server. |
| 152 NextProto protocol_negotiated_; | 154 NextProto protocol_negotiated_; |
| 153 // Type of the domain bound cert that was sent, or CLIENT_CERT_INVALID_TYPE | 155 // Type of the domain bound cert that was sent, or CLIENT_CERT_INVALID_TYPE |
| 154 // if none was sent. | 156 // if none was sent. |
| 155 SSLClientCertType domain_bound_cert_type_; | 157 SSLClientCertType domain_bound_cert_type_; |
| 156 }; | 158 }; |
| 157 | 159 |
| 158 } // namespace net | 160 } // namespace net |
| 159 | 161 |
| 160 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ | 162 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ |
| OLD | NEW |