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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
11 #include "net/base/completion_callback.h" | 12 #include "net/base/completion_callback.h" |
12 #include "net/base/io_buffer.h" | 13 #include "net/base/io_buffer.h" |
13 #include "net/log/net_log.h" | 14 #include "net/log/net_log.h" |
14 #include "net/socket/ssl_server_socket.h" | 15 #include "net/socket/ssl_server_socket.h" |
15 #include "net/ssl/ssl_server_config.h" | 16 #include "net/ssl/ssl_server_config.h" |
16 | 17 |
17 // Avoid including misc OpenSSL headers, i.e.: | 18 // Avoid including misc OpenSSL headers, i.e.: |
18 // <openssl/bio.h> | 19 // <openssl/bio.h> |
19 typedef struct bio_st BIO; | 20 typedef struct bio_st BIO; |
(...skipping 25 matching lines...) Expand all Loading... |
45 unsigned int outlen) override; | 46 unsigned int outlen) override; |
46 int GetTLSUniqueChannelBinding(std::string* out) override; | 47 int GetTLSUniqueChannelBinding(std::string* out) override; |
47 | 48 |
48 // Socket interface (via StreamSocket). | 49 // Socket interface (via StreamSocket). |
49 int Read(IOBuffer* buf, | 50 int Read(IOBuffer* buf, |
50 int buf_len, | 51 int buf_len, |
51 const CompletionCallback& callback) override; | 52 const CompletionCallback& callback) override; |
52 int Write(IOBuffer* buf, | 53 int Write(IOBuffer* buf, |
53 int buf_len, | 54 int buf_len, |
54 const CompletionCallback& callback) override; | 55 const CompletionCallback& callback) override; |
55 int SetReceiveBufferSize(int32 size) override; | 56 int SetReceiveBufferSize(int32_t size) override; |
56 int SetSendBufferSize(int32 size) override; | 57 int SetSendBufferSize(int32_t size) override; |
57 | 58 |
58 // StreamSocket implementation. | 59 // StreamSocket implementation. |
59 int Connect(const CompletionCallback& callback) override; | 60 int Connect(const CompletionCallback& callback) override; |
60 void Disconnect() override; | 61 void Disconnect() override; |
61 bool IsConnected() const override; | 62 bool IsConnected() const override; |
62 bool IsConnectedAndIdle() const override; | 63 bool IsConnectedAndIdle() const override; |
63 int GetPeerAddress(IPEndPoint* address) const override; | 64 int GetPeerAddress(IPEndPoint* address) const override; |
64 int GetLocalAddress(IPEndPoint* address) const override; | 65 int GetLocalAddress(IPEndPoint* address) const override; |
65 const BoundNetLog& NetLog() const override; | 66 const BoundNetLog& NetLog() const override; |
66 void SetSubresourceSpeculation() override; | 67 void SetSubresourceSpeculation() override; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 150 |
150 State next_handshake_state_; | 151 State next_handshake_state_; |
151 bool completed_handshake_; | 152 bool completed_handshake_; |
152 | 153 |
153 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketOpenSSL); | 154 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketOpenSSL); |
154 }; | 155 }; |
155 | 156 |
156 } // namespace net | 157 } // namespace net |
157 | 158 |
158 #endif // NET_SOCKET_SSL_SERVER_SOCKET_OPENSSL_H_ | 159 #endif // NET_SOCKET_SSL_SERVER_SOCKET_OPENSSL_H_ |
OLD | NEW |