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 #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 19 matching lines...) Expand all Loading... |
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 #include "third_party/boringssl/src/include/openssl/base.h" | 34 #include "third_party/boringssl/src/include/openssl/base.h" |
35 #include "third_party/boringssl/src/include/openssl/ssl.h" | 35 #include "third_party/boringssl/src/include/openssl/ssl.h" |
36 | 36 |
37 namespace base { | 37 namespace base { |
38 class FilePath; | 38 class FilePath; |
39 class SequencedTaskRunner; | 39 class SequencedTaskRunner; |
| 40 namespace trace_event { |
| 41 class ProcessMemoryDump; |
| 42 } |
40 } | 43 } |
41 | 44 |
42 namespace crypto { | 45 namespace crypto { |
43 class OpenSSLErrStackTracer; | 46 class OpenSSLErrStackTracer; |
44 } | 47 } |
45 | 48 |
46 namespace net { | 49 namespace net { |
47 | 50 |
48 class CertVerifier; | 51 class CertVerifier; |
49 class CTVerifier; | 52 class CTVerifier; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 void SetSubresourceSpeculation() override; | 110 void SetSubresourceSpeculation() override; |
108 void SetOmniboxSpeculation() override; | 111 void SetOmniboxSpeculation() override; |
109 bool WasEverUsed() const override; | 112 bool WasEverUsed() const override; |
110 bool WasNpnNegotiated() const override; | 113 bool WasNpnNegotiated() const override; |
111 NextProto GetNegotiatedProtocol() const override; | 114 NextProto GetNegotiatedProtocol() const override; |
112 bool GetSSLInfo(SSLInfo* ssl_info) override; | 115 bool GetSSLInfo(SSLInfo* ssl_info) override; |
113 void GetConnectionAttempts(ConnectionAttempts* out) const override; | 116 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
114 void ClearConnectionAttempts() override {} | 117 void ClearConnectionAttempts() override {} |
115 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} | 118 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
116 int64_t GetTotalReceivedBytes() const override; | 119 int64_t GetTotalReceivedBytes() const override; |
| 120 void DumpMemoryStats( |
| 121 base::trace_event::ProcessMemoryDump* pmd, |
| 122 const std::string& parent_dump_absolute_name) const override; |
| 123 |
| 124 // Dumps memory allocation stats. |pmd| is the browser process memory dump. |
| 125 static void DumpSSLClientSessionMemoryStats( |
| 126 base::trace_event::ProcessMemoryDump* pmd); |
117 | 127 |
118 // Socket implementation. | 128 // Socket implementation. |
119 int Read(IOBuffer* buf, | 129 int Read(IOBuffer* buf, |
120 int buf_len, | 130 int buf_len, |
121 const CompletionCallback& callback) override; | 131 const CompletionCallback& callback) override; |
122 int Write(IOBuffer* buf, | 132 int Write(IOBuffer* buf, |
123 int buf_len, | 133 int buf_len, |
124 const CompletionCallback& callback) override; | 134 const CompletionCallback& callback) override; |
125 int SetReceiveBufferSize(int32_t size) override; | 135 int SetReceiveBufferSize(int32_t size) override; |
126 int SetSendBufferSize(int32_t size) override; | 136 int SetSendBufferSize(int32_t size) override; |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 // True if PKP is bypassed due to a local trust anchor. | 361 // True if PKP is bypassed due to a local trust anchor. |
352 bool pkp_bypassed_; | 362 bool pkp_bypassed_; |
353 | 363 |
354 NetLogWithSource net_log_; | 364 NetLogWithSource net_log_; |
355 base::WeakPtrFactory<SSLClientSocketImpl> weak_factory_; | 365 base::WeakPtrFactory<SSLClientSocketImpl> weak_factory_; |
356 }; | 366 }; |
357 | 367 |
358 } // namespace net | 368 } // namespace net |
359 | 369 |
360 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ | 370 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ |
OLD | NEW |