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

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

Issue 2414883005: TEMP DO NOT LAND (Closed)
Patch Set: tmp Created 4 years, 1 month 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/socket_bio_adapter.cc ('k') | net/socket/ssl_client_socket_impl.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 #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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 15 matching lines...) Expand all
26 #include "net/socket/client_socket_handle.h" 26 #include "net/socket/client_socket_handle.h"
27 #include "net/socket/socket_bio_adapter.h" 27 #include "net/socket/socket_bio_adapter.h"
28 #include "net/socket/ssl_client_socket.h" 28 #include "net/socket/ssl_client_socket.h"
29 #include "net/ssl/channel_id_service.h" 29 #include "net/ssl/channel_id_service.h"
30 #include "net/ssl/openssl_ssl_util.h" 30 #include "net/ssl/openssl_ssl_util.h"
31 #include "net/ssl/ssl_client_cert_type.h" 31 #include "net/ssl/ssl_client_cert_type.h"
32 #include "net/ssl/ssl_config_service.h" 32 #include "net/ssl/ssl_config_service.h"
33 #include "third_party/boringssl/src/include/openssl/base.h" 33 #include "third_party/boringssl/src/include/openssl/base.h"
34 #include "third_party/boringssl/src/include/openssl/ssl.h" 34 #include "third_party/boringssl/src/include/openssl/ssl.h"
35 35
36 #include "base/trace_event/memory_dump_provider.h"
37
36 namespace base { 38 namespace base {
37 class FilePath; 39 class FilePath;
38 class SequencedTaskRunner; 40 class SequencedTaskRunner;
41 namespace trace_event {
42 class MemoryAllocatorDump;
43 }
39 } 44 }
40 45
41 namespace crypto { 46 namespace crypto {
42 class OpenSSLErrStackTracer; 47 class OpenSSLErrStackTracer;
43 } 48 }
44 49
45 namespace net { 50 namespace net {
46 51
47 class CertVerifier; 52 class CertVerifier;
48 class CTVerifier; 53 class CTVerifier;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 void SetSubresourceSpeculation() override; 111 void SetSubresourceSpeculation() override;
107 void SetOmniboxSpeculation() override; 112 void SetOmniboxSpeculation() override;
108 bool WasEverUsed() const override; 113 bool WasEverUsed() const override;
109 bool WasNpnNegotiated() const override; 114 bool WasNpnNegotiated() const override;
110 NextProto GetNegotiatedProtocol() const override; 115 NextProto GetNegotiatedProtocol() const override;
111 bool GetSSLInfo(SSLInfo* ssl_info) override; 116 bool GetSSLInfo(SSLInfo* ssl_info) override;
112 void GetConnectionAttempts(ConnectionAttempts* out) const override; 117 void GetConnectionAttempts(ConnectionAttempts* out) const override;
113 void ClearConnectionAttempts() override {} 118 void ClearConnectionAttempts() override {}
114 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} 119 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {}
115 int64_t GetTotalReceivedBytes() const override; 120 int64_t GetTotalReceivedBytes() const override;
121 void PopulateAllocatorDump(
122 base::trace_event::MemoryAllocatorDump* dump) const override;
116 123
124 static void PopulateSSLClientSessionAllocatorDump(
125 base::trace_event::MemoryAllocatorDump* dump);
117 // Socket implementation. 126 // Socket implementation.
118 int Read(IOBuffer* buf, 127 int Read(IOBuffer* buf,
119 int buf_len, 128 int buf_len,
120 const CompletionCallback& callback) override; 129 const CompletionCallback& callback) override;
121 int Write(IOBuffer* buf, 130 int Write(IOBuffer* buf,
122 int buf_len, 131 int buf_len,
123 const CompletionCallback& callback) override; 132 const CompletionCallback& callback) override;
124 int SetReceiveBufferSize(int32_t size) override; 133 int SetReceiveBufferSize(int32_t size) override;
125 int SetSendBufferSize(int32_t size) override; 134 int SetSendBufferSize(int32_t size) override;
126 135
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 353
345 // pinning_failure_log contains a message produced by 354 // pinning_failure_log contains a message produced by
346 // TransportSecurityState::CheckPublicKeyPins in the event of a 355 // TransportSecurityState::CheckPublicKeyPins in the event of a
347 // pinning failure. It is a (somewhat) human-readable string. 356 // pinning failure. It is a (somewhat) human-readable string.
348 std::string pinning_failure_log_; 357 std::string pinning_failure_log_;
349 358
350 // True if PKP is bypassed due to a local trust anchor. 359 // True if PKP is bypassed due to a local trust anchor.
351 bool pkp_bypassed_; 360 bool pkp_bypassed_;
352 361
353 NetLogWithSource net_log_; 362 NetLogWithSource net_log_;
363
354 base::WeakPtrFactory<SSLClientSocketImpl> weak_factory_; 364 base::WeakPtrFactory<SSLClientSocketImpl> weak_factory_;
355 }; 365 };
356 366
357 } // namespace net 367 } // namespace net
358 368
359 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ 369 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_
OLDNEW
« no previous file with comments | « net/socket/socket_bio_adapter.cc ('k') | net/socket/ssl_client_socket_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698