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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual bool IsConnectedAndIdle() const OVERRIDE; | 53 virtual bool IsConnectedAndIdle() const OVERRIDE; |
54 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; | 54 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; |
55 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; | 55 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; |
56 virtual const BoundNetLog& NetLog() const OVERRIDE; | 56 virtual const BoundNetLog& NetLog() const OVERRIDE; |
57 virtual void SetSubresourceSpeculation() OVERRIDE; | 57 virtual void SetSubresourceSpeculation() OVERRIDE; |
58 virtual void SetOmniboxSpeculation() OVERRIDE; | 58 virtual void SetOmniboxSpeculation() OVERRIDE; |
59 virtual bool WasEverUsed() const OVERRIDE; | 59 virtual bool WasEverUsed() const OVERRIDE; |
60 virtual bool UsingTCPFastOpen() const OVERRIDE; | 60 virtual bool UsingTCPFastOpen() const OVERRIDE; |
61 virtual int64 NumBytesRead() const OVERRIDE; | 61 virtual int64 NumBytesRead() const OVERRIDE; |
62 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; | 62 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; |
| 63 virtual bool WasNpnNegotiated() const OVERRIDE; |
63 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; | 64 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; |
| 65 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; |
64 | 66 |
65 private: | 67 private: |
66 enum State { | 68 enum State { |
67 STATE_NONE, | 69 STATE_NONE, |
68 STATE_HANDSHAKE, | 70 STATE_HANDSHAKE, |
69 }; | 71 }; |
70 | 72 |
71 int InitializeSSLOptions(); | 73 int InitializeSSLOptions(); |
72 | 74 |
73 void OnSendComplete(int result); | 75 void OnSendComplete(int result); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 140 |
139 State next_handshake_state_; | 141 State next_handshake_state_; |
140 bool completed_handshake_; | 142 bool completed_handshake_; |
141 | 143 |
142 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketNSS); | 144 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketNSS); |
143 }; | 145 }; |
144 | 146 |
145 } // namespace net | 147 } // namespace net |
146 | 148 |
147 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ | 149 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ |
OLD | NEW |