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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 void SetSubresourceSpeculation() override; | 110 void SetSubresourceSpeculation() override; |
111 void SetOmniboxSpeculation() override; | 111 void SetOmniboxSpeculation() override; |
112 bool WasEverUsed() const override; | 112 bool WasEverUsed() const override; |
113 bool WasAlpnNegotiated() const override; | 113 bool WasAlpnNegotiated() const override; |
114 NextProto GetNegotiatedProtocol() const override; | 114 NextProto GetNegotiatedProtocol() const override; |
115 bool GetSSLInfo(SSLInfo* ssl_info) override; | 115 bool GetSSLInfo(SSLInfo* ssl_info) override; |
116 void GetConnectionAttempts(ConnectionAttempts* out) const override; | 116 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
117 void ClearConnectionAttempts() override {} | 117 void ClearConnectionAttempts() override {} |
118 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} | 118 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
119 int64_t GetTotalReceivedBytes() const override; | 119 int64_t GetTotalReceivedBytes() const override; |
120 void DumpMemoryStats( | 120 void DumpMemoryStats(SocketMemoryStats* stats) const override; |
121 base::trace_event::ProcessMemoryDump* pmd, | |
122 const std::string& parent_dump_absolute_name) const override; | |
123 | 121 |
124 // Dumps memory allocation stats. |pmd| is the browser process memory dump. | 122 // Dumps memory allocation stats. |pmd| is the browser process memory dump. |
125 static void DumpSSLClientSessionMemoryStats( | 123 static void DumpSSLClientSessionMemoryStats( |
126 base::trace_event::ProcessMemoryDump* pmd); | 124 base::trace_event::ProcessMemoryDump* pmd); |
127 | 125 |
128 // Socket implementation. | 126 // Socket implementation. |
129 int Read(IOBuffer* buf, | 127 int Read(IOBuffer* buf, |
130 int buf_len, | 128 int buf_len, |
131 const CompletionCallback& callback) override; | 129 const CompletionCallback& callback) override; |
132 int Write(IOBuffer* buf, | 130 int Write(IOBuffer* buf, |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 // True if PKP is bypassed due to a local trust anchor. | 358 // True if PKP is bypassed due to a local trust anchor. |
361 bool pkp_bypassed_; | 359 bool pkp_bypassed_; |
362 | 360 |
363 NetLogWithSource net_log_; | 361 NetLogWithSource net_log_; |
364 base::WeakPtrFactory<SSLClientSocketImpl> weak_factory_; | 362 base::WeakPtrFactory<SSLClientSocketImpl> weak_factory_; |
365 }; | 363 }; |
366 | 364 |
367 } // namespace net | 365 } // namespace net |
368 | 366 |
369 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ | 367 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ |
OLD | NEW |