| 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 #include "net/socket/socket_bio_adapter.h" | 5 #include "net/socket/socket_bio_adapter.h" |
| 6 | 6 |
| 7 #include <openssl/bio.h> | |
| 8 #include <string.h> | 7 #include <string.h> |
| 9 | 8 |
| 10 #include <algorithm> | 9 #include <algorithm> |
| 11 | 10 |
| 12 #include "base/bind.h" | 11 #include "base/bind.h" |
| 13 #include "base/location.h" | 12 #include "base/location.h" |
| 14 #include "base/logging.h" | 13 #include "base/logging.h" |
| 15 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
| 16 #include "net/base/io_buffer.h" | 15 #include "net/base/io_buffer.h" |
| 17 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
| 18 #include "net/socket/stream_socket.h" | 17 #include "net/socket/stream_socket.h" |
| 19 #include "net/ssl/openssl_ssl_util.h" | 18 #include "net/ssl/openssl_ssl_util.h" |
| 19 #include "third_party/boringssl/src/include/openssl/bio.h" |
| 20 | 20 |
| 21 namespace net { | 21 namespace net { |
| 22 | 22 |
| 23 SocketBIOAdapter::SocketBIOAdapter(StreamSocket* socket, | 23 SocketBIOAdapter::SocketBIOAdapter(StreamSocket* socket, |
| 24 int read_buffer_capacity, | 24 int read_buffer_capacity, |
| 25 int write_buffer_capacity, | 25 int write_buffer_capacity, |
| 26 Delegate* delegate) | 26 Delegate* delegate) |
| 27 : socket_(socket), | 27 : socket_(socket), |
| 28 read_buffer_capacity_(read_buffer_capacity), | 28 read_buffer_capacity_(read_buffer_capacity), |
| 29 read_offset_(0), | 29 read_offset_(0), |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 SocketBIOAdapter::BIOReadWrapper, | 331 SocketBIOAdapter::BIOReadWrapper, |
| 332 nullptr, // puts | 332 nullptr, // puts |
| 333 nullptr, // gets | 333 nullptr, // gets |
| 334 SocketBIOAdapter::BIOCtrlWrapper, | 334 SocketBIOAdapter::BIOCtrlWrapper, |
| 335 nullptr, // create | 335 nullptr, // create |
| 336 nullptr, // destroy | 336 nullptr, // destroy |
| 337 nullptr, // callback_ctrl | 337 nullptr, // callback_ctrl |
| 338 }; | 338 }; |
| 339 | 339 |
| 340 } // namespace net | 340 } // namespace net |
| OLD | NEW |