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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <certt.h> | 9 #include <certt.h> |
10 #include <keyt.h> | 10 #include <keyt.h> |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual void Disconnect(); | 47 virtual void Disconnect(); |
48 virtual bool IsConnected() const; | 48 virtual bool IsConnected() const; |
49 virtual bool IsConnectedAndIdle() const; | 49 virtual bool IsConnectedAndIdle() const; |
50 virtual int GetPeerAddress(AddressList* address) const; | 50 virtual int GetPeerAddress(AddressList* address) const; |
51 virtual int GetLocalAddress(IPEndPoint* address) const; | 51 virtual int GetLocalAddress(IPEndPoint* address) const; |
52 virtual const BoundNetLog& NetLog() const; | 52 virtual const BoundNetLog& NetLog() const; |
53 virtual void SetSubresourceSpeculation(); | 53 virtual void SetSubresourceSpeculation(); |
54 virtual void SetOmniboxSpeculation(); | 54 virtual void SetOmniboxSpeculation(); |
55 virtual bool WasEverUsed() const; | 55 virtual bool WasEverUsed() const; |
56 virtual bool UsingTCPFastOpen() const; | 56 virtual bool UsingTCPFastOpen() const; |
57 virtual int64 NumBytesRead() const; | |
58 virtual base::TimeDelta GetConnectTimeMicros() const; | |
59 | 57 |
60 private: | 58 private: |
61 enum State { | 59 enum State { |
62 STATE_NONE, | 60 STATE_NONE, |
63 STATE_HANDSHAKE, | 61 STATE_HANDSHAKE, |
64 }; | 62 }; |
65 | 63 |
66 int InitializeSSLOptions(); | 64 int InitializeSSLOptions(); |
67 | 65 |
68 void OnSendComplete(int result); | 66 void OnSendComplete(int result); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 133 |
136 State next_handshake_state_; | 134 State next_handshake_state_; |
137 bool completed_handshake_; | 135 bool completed_handshake_; |
138 | 136 |
139 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketNSS); | 137 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketNSS); |
140 }; | 138 }; |
141 | 139 |
142 } // namespace net | 140 } // namespace net |
143 | 141 |
144 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ | 142 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ |
OLD | NEW |