| 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_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 5 #ifndef NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
| 6 #define NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 6 #define NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 void SetSubresourceSpeculation() override; | 71 void SetSubresourceSpeculation() override; |
| 72 void SetOmniboxSpeculation() override; | 72 void SetOmniboxSpeculation() override; |
| 73 bool WasEverUsed() const override; | 73 bool WasEverUsed() const override; |
| 74 bool WasNpnNegotiated() const override; | 74 bool WasNpnNegotiated() const override; |
| 75 NextProto GetNegotiatedProtocol() const override; | 75 NextProto GetNegotiatedProtocol() const override; |
| 76 bool GetSSLInfo(SSLInfo* ssl_info) override; | 76 bool GetSSLInfo(SSLInfo* ssl_info) override; |
| 77 void GetConnectionAttempts(ConnectionAttempts* out) const override; | 77 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
| 78 void ClearConnectionAttempts() override {} | 78 void ClearConnectionAttempts() override {} |
| 79 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} | 79 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
| 80 int64_t GetTotalReceivedBytes() const override; | 80 int64_t GetTotalReceivedBytes() const override; |
| 81 void DumpMemoryStats( |
| 82 base::trace_event::MemoryAllocatorDump* dump) const override; |
| 81 | 83 |
| 82 // Socket implementation. | 84 // Socket implementation. |
| 83 int Read(IOBuffer* buf, | 85 int Read(IOBuffer* buf, |
| 84 int buf_len, | 86 int buf_len, |
| 85 const CompletionCallback& callback) override; | 87 const CompletionCallback& callback) override; |
| 86 int Write(IOBuffer* buf, | 88 int Write(IOBuffer* buf, |
| 87 int buf_len, | 89 int buf_len, |
| 88 const CompletionCallback& callback) override; | 90 const CompletionCallback& callback) override; |
| 89 int SetReceiveBufferSize(int32_t size) override; | 91 int SetReceiveBufferSize(int32_t size) override; |
| 90 int SetSendBufferSize(int32_t size) override; | 92 int SetSendBufferSize(int32_t size) override; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 // Only used for posting write callbacks. Weak pointers created by this | 179 // Only used for posting write callbacks. Weak pointers created by this |
| 178 // factory are invalidated in Disconnect(). | 180 // factory are invalidated in Disconnect(). |
| 179 base::WeakPtrFactory<SpdyProxyClientSocket> write_callback_weak_factory_; | 181 base::WeakPtrFactory<SpdyProxyClientSocket> write_callback_weak_factory_; |
| 180 | 182 |
| 181 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); | 183 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); |
| 182 }; | 184 }; |
| 183 | 185 |
| 184 } // namespace net | 186 } // namespace net |
| 185 | 187 |
| 186 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 188 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |