OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SOCKET_BIO_ADAPTER_H_ | 5 #ifndef NET_SOCKET_SOCKET_BIO_ADAPTER_H_ |
6 #define NET_SOCKET_SOCKET_BIO_ADAPTER_H_ | 6 #define NET_SOCKET_SOCKET_BIO_ADAPTER_H_ |
7 | 7 |
8 #include <openssl/base.h> | |
9 | |
10 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
11 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
12 #include "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" |
13 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
| 12 #include "third_party/boringssl/src/include/openssl/base.h" |
14 | 13 |
15 namespace net { | 14 namespace net { |
16 | 15 |
17 class GrowableIOBuffer; | 16 class GrowableIOBuffer; |
18 class IOBuffer; | 17 class IOBuffer; |
19 class StreamSocket; | 18 class StreamSocket; |
20 | 19 |
21 // An adapter to convert between StreamSocket and OpenSSL BIO I/O models. | 20 // An adapter to convert between StreamSocket and OpenSSL BIO I/O models. |
22 // | 21 // |
23 // BIO exposes a UNIX-like interface where BIO_read and BIO_write may either | 22 // BIO exposes a UNIX-like interface where BIO_read and BIO_write may either |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 Delegate* delegate_; | 133 Delegate* delegate_; |
135 | 134 |
136 base::WeakPtrFactory<SocketBIOAdapter> weak_factory_; | 135 base::WeakPtrFactory<SocketBIOAdapter> weak_factory_; |
137 | 136 |
138 DISALLOW_COPY_AND_ASSIGN(SocketBIOAdapter); | 137 DISALLOW_COPY_AND_ASSIGN(SocketBIOAdapter); |
139 }; | 138 }; |
140 | 139 |
141 } // namespace net | 140 } // namespace net |
142 | 141 |
143 #endif // NET_SOCKET_SOCKET_BIO_ADAPTER_H_ | 142 #endif // NET_SOCKET_SOCKET_BIO_ADAPTER_H_ |
OLD | NEW |