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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 static bool IgnoreCertError(int error, int load_flags); | 119 static bool IgnoreCertError(int error, int load_flags); |
120 | 120 |
121 virtual bool was_npn_negotiated() const; | 121 virtual bool was_npn_negotiated() const; |
122 | 122 |
123 virtual bool set_was_npn_negotiated(bool negotiated); | 123 virtual bool set_was_npn_negotiated(bool negotiated); |
124 | 124 |
125 virtual bool was_spdy_negotiated() const; | 125 virtual bool was_spdy_negotiated() const; |
126 | 126 |
127 virtual bool set_was_spdy_negotiated(bool negotiated); | 127 virtual bool set_was_spdy_negotiated(bool negotiated); |
128 | 128 |
| 129 // Returns true if an origin bound certificate was sent on this connection. |
| 130 // This may be useful for protocols, like SPDY, which allow the same |
| 131 // connection to be shared between multiple origins, each of which need |
| 132 // an origin bound certificate. |
| 133 virtual bool was_origin_bound_cert_sent() const; |
| 134 |
| 135 virtual bool set_was_origin_bound_cert_sent(bool sent); |
| 136 |
129 private: | 137 private: |
130 // True if NPN was responded to, independent of selecting SPDY or HTTP. | 138 // True if NPN was responded to, independent of selecting SPDY or HTTP. |
131 bool was_npn_negotiated_; | 139 bool was_npn_negotiated_; |
132 // True if NPN successfully negotiated SPDY. | 140 // True if NPN successfully negotiated SPDY. |
133 bool was_spdy_negotiated_; | 141 bool was_spdy_negotiated_; |
| 142 // True if an origin bound certificate was sent. |
| 143 bool was_origin_bound_cert_sent_; |
134 }; | 144 }; |
135 | 145 |
136 } // namespace net | 146 } // namespace net |
137 | 147 |
138 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ | 148 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ |
OLD | NEW |