OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // Connect will fail. | 61 // Connect will fail. |
62 // | 62 // |
63 class NET_EXPORT SSLClientSocket : public SSLSocket { | 63 class NET_EXPORT SSLClientSocket : public SSLSocket { |
64 public: | 64 public: |
65 SSLClientSocket(); | 65 SSLClientSocket(); |
66 | 66 |
67 // Next Protocol Negotiation (NPN) allows a TLS client and server to come to | 67 // Next Protocol Negotiation (NPN) allows a TLS client and server to come to |
68 // an agreement about the application level protocol to speak over a | 68 // an agreement about the application level protocol to speak over a |
69 // connection. | 69 // connection. |
70 enum NextProtoStatus { | 70 enum NextProtoStatus { |
71 // WARNING: These values are serialised to disk. Don't change them. | 71 // WARNING: These values are serialized to disk. Don't change them. |
72 | 72 |
73 kNextProtoUnsupported = 0, // The server doesn't support NPN. | 73 kNextProtoUnsupported = 0, // The server doesn't support NPN. |
74 kNextProtoNegotiated = 1, // We agreed on a protocol. | 74 kNextProtoNegotiated = 1, // We agreed on a protocol. |
75 kNextProtoNoOverlap = 2, // No protocols in common. We requested | 75 kNextProtoNoOverlap = 2, // No protocols in common. We requested |
76 // the first protocol in our list. | 76 // the first protocol in our list. |
77 }; | 77 }; |
78 | 78 |
79 // Next Protocol Negotiation (NPN), if successful, results in agreement on an | 79 // Next Protocol Negotiation (NPN), if successful, results in agreement on an |
80 // application-level string that specifies the application level protocol to | 80 // application-level string that specifies the application level protocol to |
81 // use over the TLS connection. NextProto enumerates the application level | 81 // use over the TLS connection. NextProto enumerates the application level |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 bool was_spdy_negotiated_; | 153 bool was_spdy_negotiated_; |
154 // Protocol that we negotiated with the server. | 154 // Protocol that we negotiated with the server. |
155 SSLClientSocket::NextProto next_protocol_; | 155 SSLClientSocket::NextProto next_protocol_; |
156 // True if an origin bound certificate was sent. | 156 // True if an origin bound certificate was sent. |
157 bool was_origin_bound_cert_sent_; | 157 bool was_origin_bound_cert_sent_; |
158 }; | 158 }; |
159 | 159 |
160 } // namespace net | 160 } // namespace net |
161 | 161 |
162 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ | 162 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ |
OLD | NEW |