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