OLD | NEW |
---|---|
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
93 virtual bool was_npn_negotiated() const; | 93 virtual bool was_npn_negotiated() const; |
94 | 94 |
95 virtual bool set_was_npn_negotiated(bool negotiated); | 95 virtual bool set_was_npn_negotiated(bool negotiated); |
96 | 96 |
97 virtual void UseDNSSEC(DNSSECProvider*) { } | 97 virtual void UseDNSSEC(DNSSECProvider*) { } |
98 | 98 |
99 virtual bool was_spdy_negotiated() const; | 99 virtual bool was_spdy_negotiated() const; |
100 | 100 |
101 virtual bool set_was_spdy_negotiated(bool negotiated); | 101 virtual bool set_was_spdy_negotiated(bool negotiated); |
102 | 102 |
103 // Clears cache used for SSL session resumption. | |
104 static void ClearSSLSessionCache(); | |
105 | |
106 // To use the System specific SSL libraries for clearning the SSL | |
107 // session cache. | |
108 static void UseSystemClearSSLSessionCache(); | |
wtc
2011/02/23 00:38:38
These two static methods should be combined into o
| |
109 | |
103 private: | 110 private: |
104 // True if NPN was responded to, independent of selecting SPDY or HTTP. | 111 // True if NPN was responded to, independent of selecting SPDY or HTTP. |
105 bool was_npn_negotiated_; | 112 bool was_npn_negotiated_; |
106 // True if NPN successfully negotiated SPDY. | 113 // True if NPN successfully negotiated SPDY. |
107 bool was_spdy_negotiated_; | 114 bool was_spdy_negotiated_; |
108 }; | 115 }; |
109 | 116 |
110 } // namespace net | 117 } // namespace net |
111 | 118 |
112 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ | 119 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ |
OLD | NEW |