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

Side by Side Diff: net/socket/ssl_client_socket_impl.h

Issue 2414883005: TEMP DO NOT LAND (Closed)
Patch Set: temp Created 4 years, 2 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
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 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_
7 7
8 #include <openssl/base.h> 8 #include <openssl/base.h>
9 #include <openssl/ssl.h> 9 #include <openssl/ssl.h>
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 14 matching lines...) Expand all
25 #include "net/cert/cert_verify_result.h" 25 #include "net/cert/cert_verify_result.h"
26 #include "net/cert/ct_verify_result.h" 26 #include "net/cert/ct_verify_result.h"
27 #include "net/log/net_log_with_source.h" 27 #include "net/log/net_log_with_source.h"
28 #include "net/socket/client_socket_handle.h" 28 #include "net/socket/client_socket_handle.h"
29 #include "net/socket/ssl_client_socket.h" 29 #include "net/socket/ssl_client_socket.h"
30 #include "net/ssl/channel_id_service.h" 30 #include "net/ssl/channel_id_service.h"
31 #include "net/ssl/openssl_ssl_util.h" 31 #include "net/ssl/openssl_ssl_util.h"
32 #include "net/ssl/ssl_client_cert_type.h" 32 #include "net/ssl/ssl_client_cert_type.h"
33 #include "net/ssl/ssl_config_service.h" 33 #include "net/ssl/ssl_config_service.h"
34 34
35 #include "base/trace_event/memory_dump_provider.h"
36
35 namespace base { 37 namespace base {
36 class FilePath; 38 class FilePath;
37 class SequencedTaskRunner; 39 class SequencedTaskRunner;
40 namespace trace_event {
41 class MemoryAllocatorDump;
42 }
38 } 43 }
39 44
40 namespace crypto { 45 namespace crypto {
41 class OpenSSLErrStackTracer; 46 class OpenSSLErrStackTracer;
42 } 47 }
43 48
44 namespace net { 49 namespace net {
45 50
46 class CertVerifier; 51 class CertVerifier;
47 class CTVerifier; 52 class CTVerifier;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 bool has_context, 95 bool has_context,
91 const base::StringPiece& context, 96 const base::StringPiece& context,
92 unsigned char* out, 97 unsigned char* out,
93 unsigned int outlen) override; 98 unsigned int outlen) override;
94 99
95 // StreamSocket implementation. 100 // StreamSocket implementation.
96 int Connect(const CompletionCallback& callback) override; 101 int Connect(const CompletionCallback& callback) override;
97 void Disconnect() override; 102 void Disconnect() override;
98 bool IsConnected() const override; 103 bool IsConnected() const override;
99 bool IsConnectedAndIdle() const override; 104 bool IsConnectedAndIdle() const override;
105 void OnAddedToPool() override;
106 void OnRemovedFromPool() override;
100 int GetPeerAddress(IPEndPoint* address) const override; 107 int GetPeerAddress(IPEndPoint* address) const override;
101 int GetLocalAddress(IPEndPoint* address) const override; 108 int GetLocalAddress(IPEndPoint* address) const override;
102 const NetLogWithSource& NetLog() const override; 109 const NetLogWithSource& NetLog() const override;
103 void SetSubresourceSpeculation() override; 110 void SetSubresourceSpeculation() override;
104 void SetOmniboxSpeculation() override; 111 void SetOmniboxSpeculation() override;
105 bool WasEverUsed() const override; 112 bool WasEverUsed() const override;
106 bool WasNpnNegotiated() const override; 113 bool WasNpnNegotiated() const override;
107 NextProto GetNegotiatedProtocol() const override; 114 NextProto GetNegotiatedProtocol() const override;
108 bool GetSSLInfo(SSLInfo* ssl_info) override; 115 bool GetSSLInfo(SSLInfo* ssl_info) override;
109 void GetConnectionAttempts(ConnectionAttempts* out) const override; 116 void GetConnectionAttempts(ConnectionAttempts* out) const override;
110 void ClearConnectionAttempts() override {} 117 void ClearConnectionAttempts() override {}
111 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} 118 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {}
112 int64_t GetTotalReceivedBytes() const override; 119 int64_t GetTotalReceivedBytes() const override;
120 void PopulateAllocatorDump(
121 base::trace_event::MemoryAllocatorDump* dump) const override;
113 122
114 // Socket implementation. 123 // Socket implementation.
115 int Read(IOBuffer* buf, 124 int Read(IOBuffer* buf,
116 int buf_len, 125 int buf_len,
117 const CompletionCallback& callback) override; 126 const CompletionCallback& callback) override;
118 int Write(IOBuffer* buf, 127 int Write(IOBuffer* buf,
119 int buf_len, 128 int buf_len,
120 const CompletionCallback& callback) override; 129 const CompletionCallback& callback) override;
121 int SetReceiveBufferSize(int32_t size) override; 130 int SetReceiveBufferSize(int32_t size) override;
122 int SetSendBufferSize(int32_t size) override; 131 int SetSendBufferSize(int32_t size) override;
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 393
385 // pinning_failure_log contains a message produced by 394 // pinning_failure_log contains a message produced by
386 // TransportSecurityState::CheckPublicKeyPins in the event of a 395 // TransportSecurityState::CheckPublicKeyPins in the event of a
387 // pinning failure. It is a (somewhat) human-readable string. 396 // pinning failure. It is a (somewhat) human-readable string.
388 std::string pinning_failure_log_; 397 std::string pinning_failure_log_;
389 398
390 // True if PKP is bypassed due to a local trust anchor. 399 // True if PKP is bypassed due to a local trust anchor.
391 bool pkp_bypassed_; 400 bool pkp_bypassed_;
392 401
393 NetLogWithSource net_log_; 402 NetLogWithSource net_log_;
403
404 bool in_pool_;
405
394 base::WeakPtrFactory<SSLClientSocketImpl> weak_factory_; 406 base::WeakPtrFactory<SSLClientSocketImpl> weak_factory_;
395 }; 407 };
396 408
397 } // namespace net 409 } // namespace net
398 410
399 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ 411 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698