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_SERVER_SOCKET_NSS_H_ | 5 #ifndef NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ |
6 #define NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ | 6 #define NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ |
7 | 7 |
8 #include <certt.h> | 8 #include <certt.h> |
9 #include <keyt.h> | 9 #include <keyt.h> |
10 #include <nspr.h> | 10 #include <nspr.h> |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 int GetPeerAddress(IPEndPoint* address) const override; | 59 int GetPeerAddress(IPEndPoint* address) const override; |
60 int GetLocalAddress(IPEndPoint* address) const override; | 60 int GetLocalAddress(IPEndPoint* address) const override; |
61 const BoundNetLog& NetLog() const override; | 61 const BoundNetLog& NetLog() const override; |
62 void SetSubresourceSpeculation() override; | 62 void SetSubresourceSpeculation() override; |
63 void SetOmniboxSpeculation() override; | 63 void SetOmniboxSpeculation() override; |
64 bool WasEverUsed() const override; | 64 bool WasEverUsed() const override; |
65 bool UsingTCPFastOpen() const override; | 65 bool UsingTCPFastOpen() const override; |
66 bool WasNpnNegotiated() const override; | 66 bool WasNpnNegotiated() const override; |
67 NextProto GetNegotiatedProtocol() const override; | 67 NextProto GetNegotiatedProtocol() const override; |
68 bool GetSSLInfo(SSLInfo* ssl_info) override; | 68 bool GetSSLInfo(SSLInfo* ssl_info) override; |
| 69 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
| 70 void ClearConnectionAttempts() override {} |
| 71 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
69 | 72 |
70 private: | 73 private: |
71 enum State { | 74 enum State { |
72 STATE_NONE, | 75 STATE_NONE, |
73 STATE_HANDSHAKE, | 76 STATE_HANDSHAKE, |
74 }; | 77 }; |
75 | 78 |
76 int InitializeSSLOptions(); | 79 int InitializeSSLOptions(); |
77 | 80 |
78 void OnSendComplete(int result); | 81 void OnSendComplete(int result); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 146 |
144 State next_handshake_state_; | 147 State next_handshake_state_; |
145 bool completed_handshake_; | 148 bool completed_handshake_; |
146 | 149 |
147 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketNSS); | 150 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketNSS); |
148 }; | 151 }; |
149 | 152 |
150 } // namespace net | 153 } // namespace net |
151 | 154 |
152 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ | 155 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ |
OLD | NEW |