| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_HTTP_HTTP_PROXY_CLIENT_SOCKET_WRAPPER_H_ | 5 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_WRAPPER_H_ |
| 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_WRAPPER_H_ | 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_WRAPPER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 void SetSubresourceSpeculation() override; | 97 void SetSubresourceSpeculation() override; |
| 98 void SetOmniboxSpeculation() override; | 98 void SetOmniboxSpeculation() override; |
| 99 bool WasEverUsed() const override; | 99 bool WasEverUsed() const override; |
| 100 bool WasNpnNegotiated() const override; | 100 bool WasNpnNegotiated() const override; |
| 101 NextProto GetNegotiatedProtocol() const override; | 101 NextProto GetNegotiatedProtocol() const override; |
| 102 bool GetSSLInfo(SSLInfo* ssl_info) override; | 102 bool GetSSLInfo(SSLInfo* ssl_info) override; |
| 103 void GetConnectionAttempts(ConnectionAttempts* out) const override; | 103 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
| 104 void ClearConnectionAttempts() override; | 104 void ClearConnectionAttempts() override; |
| 105 void AddConnectionAttempts(const ConnectionAttempts& attempts) override; | 105 void AddConnectionAttempts(const ConnectionAttempts& attempts) override; |
| 106 int64_t GetTotalReceivedBytes() const override; | 106 int64_t GetTotalReceivedBytes() const override; |
| 107 void DumpMemoryStats( |
| 108 base::trace_event::MemoryAllocatorDump* dump) const override; |
| 107 | 109 |
| 108 // Socket implementation. | 110 // Socket implementation. |
| 109 int Read(IOBuffer* buf, | 111 int Read(IOBuffer* buf, |
| 110 int buf_len, | 112 int buf_len, |
| 111 const CompletionCallback& callback) override; | 113 const CompletionCallback& callback) override; |
| 112 int Write(IOBuffer* buf, | 114 int Write(IOBuffer* buf, |
| 113 int buf_len, | 115 int buf_len, |
| 114 const CompletionCallback& callback) override; | 116 const CompletionCallback& callback) override; |
| 115 int SetReceiveBufferSize(int32_t size) override; | 117 int SetReceiveBufferSize(int32_t size) override; |
| 116 int SetSendBufferSize(int32_t size) override; | 118 int SetSendBufferSize(int32_t size) override; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 NetLogWithSource net_log_; | 206 NetLogWithSource net_log_; |
| 205 | 207 |
| 206 base::OneShotTimer connect_timer_; | 208 base::OneShotTimer connect_timer_; |
| 207 | 209 |
| 208 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketWrapper); | 210 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketWrapper); |
| 209 }; | 211 }; |
| 210 | 212 |
| 211 } // namespace net | 213 } // namespace net |
| 212 | 214 |
| 213 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_WRAPPER_H_ | 215 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_WRAPPER_H_ |
| OLD | NEW |