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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 virtual bool was_npn_negotiated() const; | 139 virtual bool was_npn_negotiated() const; |
140 | 140 |
141 virtual bool set_was_npn_negotiated(bool negotiated); | 141 virtual bool set_was_npn_negotiated(bool negotiated); |
142 | 142 |
143 virtual void UseDNSSEC(DNSSECProvider*) { } | 143 virtual void UseDNSSEC(DNSSECProvider*) { } |
144 | 144 |
145 virtual bool was_spdy_negotiated() const; | 145 virtual bool was_spdy_negotiated() const; |
146 | 146 |
147 virtual bool set_was_spdy_negotiated(bool negotiated); | 147 virtual bool set_was_spdy_negotiated(bool negotiated); |
148 | 148 |
| 149 // Returns true if an origin bound certificate was sent on this connection. |
| 150 // This may be useful for protocols, like SPDY, which allow the same |
| 151 // connection to be shared between multiple origins, each of which need |
| 152 // an origin bound certificate. |
| 153 virtual bool was_origin_bound_cert_sent() const; |
| 154 |
| 155 virtual bool set_was_origin_bound_cert_sent(bool sent); |
| 156 |
149 private: | 157 private: |
150 // True if NPN was responded to, independent of selecting SPDY or HTTP. | 158 // True if NPN was responded to, independent of selecting SPDY or HTTP. |
151 bool was_npn_negotiated_; | 159 bool was_npn_negotiated_; |
152 // True if NPN successfully negotiated SPDY. | 160 // True if NPN successfully negotiated SPDY. |
153 bool was_spdy_negotiated_; | 161 bool was_spdy_negotiated_; |
| 162 // True if an origin bound certificate was sent. |
| 163 bool was_origin_bound_cert_sent_; |
154 }; | 164 }; |
155 | 165 |
156 } // namespace net | 166 } // namespace net |
157 | 167 |
158 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ | 168 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ |
OLD | NEW |