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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // Next Protocol Negotiation (NPN), if successful, results in agreement on an | 80 // Next Protocol Negotiation (NPN), if successful, results in agreement on an |
81 // application-level string that specifies the application level protocol to | 81 // application-level string that specifies the application level protocol to |
82 // use over the TLS connection. NextProto enumerates the application level | 82 // use over the TLS connection. NextProto enumerates the application level |
83 // protocols that we recognise. | 83 // protocols that we recognise. |
84 enum NextProto { | 84 enum NextProto { |
85 kProtoUnknown = 0, | 85 kProtoUnknown = 0, |
86 kProtoHTTP11 = 1, | 86 kProtoHTTP11 = 1, |
87 kProtoSPDY1 = 2, | 87 kProtoSPDY1 = 2, |
88 kProtoSPDY2 = 3, | 88 kProtoSPDY2 = 3, |
89 kProtoSPDY21 = 4, | 89 kProtoSPDY21 = 4, |
| 90 kProtoSPDY3 = 5, |
90 }; | 91 }; |
91 | 92 |
92 // Gets the SSL connection information of the socket. | 93 // Gets the SSL connection information of the socket. |
93 // | 94 // |
94 // TODO(sergeyu): Move this method to the SSLSocket interface and | 95 // TODO(sergeyu): Move this method to the SSLSocket interface and |
95 // implemented in SSLServerSocket too. | 96 // implemented in SSLServerSocket too. |
96 virtual void GetSSLInfo(SSLInfo* ssl_info) = 0; | 97 virtual void GetSSLInfo(SSLInfo* ssl_info) = 0; |
97 | 98 |
98 // Gets the SSL CertificateRequest info of the socket after Connect failed | 99 // Gets the SSL CertificateRequest info of the socket after Connect failed |
99 // with ERR_SSL_CLIENT_AUTH_CERT_NEEDED. | 100 // with ERR_SSL_CLIENT_AUTH_CERT_NEEDED. |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 // Protocol that we negotiated with the server. | 166 // Protocol that we negotiated with the server. |
166 SSLClientSocket::NextProto protocol_negotiated_; | 167 SSLClientSocket::NextProto protocol_negotiated_; |
167 // Type of the origin bound cert that was sent, or CLIENT_CERT_INVALID_TYPE | 168 // Type of the origin bound cert that was sent, or CLIENT_CERT_INVALID_TYPE |
168 // if none was sent. | 169 // if none was sent. |
169 SSLClientCertType origin_bound_cert_type_; | 170 SSLClientCertType origin_bound_cert_type_; |
170 }; | 171 }; |
171 | 172 |
172 } // namespace net | 173 } // namespace net |
173 | 174 |
174 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ | 175 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ |
OLD | NEW |