Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Side by Side Diff: net/socket/ssl_server_socket_openssl.cc

Issue 1821633003: net: remove UsingTCPFastOpen() method from StreamSocket class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove use_tcp_fastopen_ from transport_client_socket_pool_test_util.cc Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/socket/ssl_server_socket_nss.cc ('k') | net/socket/ssl_server_socket_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_openssl.h" 5 #include "net/socket/ssl_server_socket_openssl.h"
6 6
7 #include <openssl/err.h> 7 #include <openssl/err.h>
8 #include <openssl/ssl.h> 8 #include <openssl/ssl.h>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 int Connect(const CompletionCallback& callback) override; 82 int Connect(const CompletionCallback& callback) override;
83 void Disconnect() override; 83 void Disconnect() override;
84 bool IsConnected() const override; 84 bool IsConnected() const override;
85 bool IsConnectedAndIdle() const override; 85 bool IsConnectedAndIdle() const override;
86 int GetPeerAddress(IPEndPoint* address) const override; 86 int GetPeerAddress(IPEndPoint* address) const override;
87 int GetLocalAddress(IPEndPoint* address) const override; 87 int GetLocalAddress(IPEndPoint* address) const override;
88 const BoundNetLog& NetLog() const override; 88 const BoundNetLog& NetLog() const override;
89 void SetSubresourceSpeculation() override; 89 void SetSubresourceSpeculation() override;
90 void SetOmniboxSpeculation() override; 90 void SetOmniboxSpeculation() override;
91 bool WasEverUsed() const override; 91 bool WasEverUsed() const override;
92 bool UsingTCPFastOpen() const override;
93 bool WasNpnNegotiated() const override; 92 bool WasNpnNegotiated() const override;
94 NextProto GetNegotiatedProtocol() const override; 93 NextProto GetNegotiatedProtocol() const override;
95 bool GetSSLInfo(SSLInfo* ssl_info) override; 94 bool GetSSLInfo(SSLInfo* ssl_info) override;
96 void GetConnectionAttempts(ConnectionAttempts* out) const override; 95 void GetConnectionAttempts(ConnectionAttempts* out) const override;
97 void ClearConnectionAttempts() override {} 96 void ClearConnectionAttempts() override {}
98 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} 97 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {}
99 int64_t GetTotalReceivedBytes() const override; 98 int64_t GetTotalReceivedBytes() const override;
100 static int CertVerifyCallback(X509_STORE_CTX* store_ctx, void* arg); 99 static int CertVerifyCallback(X509_STORE_CTX* store_ctx, void* arg);
101 100
102 private: 101 private:
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 } 345 }
347 346
348 void SSLServerSocketOpenSSL::SetOmniboxSpeculation() { 347 void SSLServerSocketOpenSSL::SetOmniboxSpeculation() {
349 transport_socket_->SetOmniboxSpeculation(); 348 transport_socket_->SetOmniboxSpeculation();
350 } 349 }
351 350
352 bool SSLServerSocketOpenSSL::WasEverUsed() const { 351 bool SSLServerSocketOpenSSL::WasEverUsed() const {
353 return transport_socket_->WasEverUsed(); 352 return transport_socket_->WasEverUsed();
354 } 353 }
355 354
356 bool SSLServerSocketOpenSSL::UsingTCPFastOpen() const {
357 return transport_socket_->UsingTCPFastOpen();
358 }
359
360 bool SSLServerSocketOpenSSL::WasNpnNegotiated() const { 355 bool SSLServerSocketOpenSSL::WasNpnNegotiated() const {
361 NOTIMPLEMENTED(); 356 NOTIMPLEMENTED();
362 return false; 357 return false;
363 } 358 }
364 359
365 NextProto SSLServerSocketOpenSSL::GetNegotiatedProtocol() const { 360 NextProto SSLServerSocketOpenSSL::GetNegotiatedProtocol() const {
366 // NPN is not supported by this class. 361 // NPN is not supported by this class.
367 return kProtoUnknown; 362 return kProtoUnknown;
368 } 363 }
369 364
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 SSL* ssl = SSL_new(ssl_ctx_.get()); 948 SSL* ssl = SSL_new(ssl_ctx_.get());
954 return scoped_ptr<SSLServerSocket>( 949 return scoped_ptr<SSLServerSocket>(
955 new SSLServerSocketOpenSSL(std::move(socket), ssl)); 950 new SSLServerSocketOpenSSL(std::move(socket), ssl));
956 } 951 }
957 952
958 void EnableSSLServerSockets() { 953 void EnableSSLServerSockets() {
959 // No-op because CreateSSLServerSocket() calls crypto::EnsureOpenSSLInit(). 954 // No-op because CreateSSLServerSocket() calls crypto::EnsureOpenSSLInit().
960 } 955 }
961 956
962 } // namespace net 957 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_server_socket_nss.cc ('k') | net/socket/ssl_server_socket_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698