OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_OPENSSL_H_ | 5 #ifndef NET_SOCKET_SSL_SERVER_SOCKET_OPENSSL_H_ |
6 #define NET_SOCKET_SSL_SERVER_SOCKET_OPENSSL_H_ | 6 #define NET_SOCKET_SSL_SERVER_SOCKET_OPENSSL_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "net/base/completion_callback.h" | 9 #include "net/base/completion_callback.h" |
10 #include "net/base/io_buffer.h" | 10 #include "net/base/io_buffer.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 int GetPeerAddress(IPEndPoint* address) const override; | 61 int GetPeerAddress(IPEndPoint* address) const override; |
62 int GetLocalAddress(IPEndPoint* address) const override; | 62 int GetLocalAddress(IPEndPoint* address) const override; |
63 const BoundNetLog& NetLog() const override; | 63 const BoundNetLog& NetLog() const override; |
64 void SetSubresourceSpeculation() override; | 64 void SetSubresourceSpeculation() override; |
65 void SetOmniboxSpeculation() override; | 65 void SetOmniboxSpeculation() override; |
66 bool WasEverUsed() const override; | 66 bool WasEverUsed() const override; |
67 bool UsingTCPFastOpen() const override; | 67 bool UsingTCPFastOpen() const override; |
68 bool WasNpnNegotiated() const override; | 68 bool WasNpnNegotiated() const override; |
69 NextProto GetNegotiatedProtocol() const override; | 69 NextProto GetNegotiatedProtocol() const override; |
70 bool GetSSLInfo(SSLInfo* ssl_info) override; | 70 bool GetSSLInfo(SSLInfo* ssl_info) override; |
| 71 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
| 72 void ClearConnectionAttempts() override {} |
| 73 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
71 | 74 |
72 private: | 75 private: |
73 enum State { | 76 enum State { |
74 STATE_NONE, | 77 STATE_NONE, |
75 STATE_HANDSHAKE, | 78 STATE_HANDSHAKE, |
76 }; | 79 }; |
77 | 80 |
78 void OnSendComplete(int result); | 81 void OnSendComplete(int result); |
79 void OnRecvComplete(int result); | 82 void OnRecvComplete(int result); |
80 void OnHandshakeIOComplete(int result); | 83 void OnHandshakeIOComplete(int result); |
(...skipping 62 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(SSLServerSocketOpenSSL); | 150 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketOpenSSL); |
148 }; | 151 }; |
149 | 152 |
150 } // namespace net | 153 } // namespace net |
151 | 154 |
152 #endif // NET_SOCKET_SSL_SERVER_SOCKET_OPENSSL_H_ | 155 #endif // NET_SOCKET_SSL_SERVER_SOCKET_OPENSSL_H_ |
OLD | NEW |