| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ssl_server_socket_impl.h" | 5 #include "net/socket/ssl_server_socket_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 void SetSubresourceSpeculation() override; | 94 void SetSubresourceSpeculation() override; |
| 95 void SetOmniboxSpeculation() override; | 95 void SetOmniboxSpeculation() override; |
| 96 bool WasEverUsed() const override; | 96 bool WasEverUsed() const override; |
| 97 bool WasNpnNegotiated() const override; | 97 bool WasNpnNegotiated() const override; |
| 98 NextProto GetNegotiatedProtocol() const override; | 98 NextProto GetNegotiatedProtocol() const override; |
| 99 bool GetSSLInfo(SSLInfo* ssl_info) override; | 99 bool GetSSLInfo(SSLInfo* ssl_info) override; |
| 100 void GetConnectionAttempts(ConnectionAttempts* out) const override; | 100 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
| 101 void ClearConnectionAttempts() override {} | 101 void ClearConnectionAttempts() override {} |
| 102 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} | 102 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
| 103 int64_t GetTotalReceivedBytes() const override; | 103 int64_t GetTotalReceivedBytes() const override; |
| 104 void DumpMemoryStats( |
| 105 base::trace_event::MemoryAllocatorDump* dump) const override {} |
| 106 |
| 104 static int CertVerifyCallback(X509_STORE_CTX* store_ctx, void* arg); | 107 static int CertVerifyCallback(X509_STORE_CTX* store_ctx, void* arg); |
| 105 | 108 |
| 106 // SocketBIOAdapter::Delegate implementation. | 109 // SocketBIOAdapter::Delegate implementation. |
| 107 void OnReadReady() override; | 110 void OnReadReady() override; |
| 108 void OnWriteReady() override; | 111 void OnWriteReady() override; |
| 109 | 112 |
| 110 private: | 113 private: |
| 111 enum State { | 114 enum State { |
| 112 STATE_NONE, | 115 STATE_NONE, |
| 113 STATE_HANDSHAKE, | 116 STATE_HANDSHAKE, |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 SSLServerContextImpl::~SSLServerContextImpl() {} | 736 SSLServerContextImpl::~SSLServerContextImpl() {} |
| 734 | 737 |
| 735 std::unique_ptr<SSLServerSocket> SSLServerContextImpl::CreateSSLServerSocket( | 738 std::unique_ptr<SSLServerSocket> SSLServerContextImpl::CreateSSLServerSocket( |
| 736 std::unique_ptr<StreamSocket> socket) { | 739 std::unique_ptr<StreamSocket> socket) { |
| 737 bssl::UniquePtr<SSL> ssl(SSL_new(ssl_ctx_.get())); | 740 bssl::UniquePtr<SSL> ssl(SSL_new(ssl_ctx_.get())); |
| 738 return std::unique_ptr<SSLServerSocket>( | 741 return std::unique_ptr<SSLServerSocket>( |
| 739 new SSLServerSocketImpl(std::move(socket), std::move(ssl))); | 742 new SSLServerSocketImpl(std::move(socket), std::move(ssl))); |
| 740 } | 743 } |
| 741 | 744 |
| 742 } // namespace net | 745 } // namespace net |
| OLD | NEW |