| 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 MemoryAllocatorDump; |
| 42 class ProcessMemoryDump; |
| 43 } |
| 40 } | 44 } |
| 41 | 45 |
| 42 namespace crypto { | 46 namespace crypto { |
| 43 class OpenSSLErrStackTracer; | 47 class OpenSSLErrStackTracer; |
| 44 } | 48 } |
| 45 | 49 |
| 46 namespace net { | 50 namespace net { |
| 47 | 51 |
| 48 class CertVerifier; | 52 class CertVerifier; |
| 49 class CTVerifier; | 53 class CTVerifier; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 void SetSubresourceSpeculation() override; | 111 void SetSubresourceSpeculation() override; |
| 108 void SetOmniboxSpeculation() override; | 112 void SetOmniboxSpeculation() override; |
| 109 bool WasEverUsed() const override; | 113 bool WasEverUsed() const override; |
| 110 bool WasNpnNegotiated() const override; | 114 bool WasNpnNegotiated() const override; |
| 111 NextProto GetNegotiatedProtocol() const override; | 115 NextProto GetNegotiatedProtocol() const override; |
| 112 bool GetSSLInfo(SSLInfo* ssl_info) override; | 116 bool GetSSLInfo(SSLInfo* ssl_info) override; |
| 113 void GetConnectionAttempts(ConnectionAttempts* out) const override; | 117 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
| 114 void ClearConnectionAttempts() override {} | 118 void ClearConnectionAttempts() override {} |
| 115 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} | 119 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
| 116 int64_t GetTotalReceivedBytes() const override; | 120 int64_t GetTotalReceivedBytes() const override; |
| 121 void DumpMemoryStats( |
| 122 base::trace_event::MemoryAllocatorDump* parent_dump) 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 |