| 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 <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 bool IsConnected() const override; | 66 bool IsConnected() const override; |
| 67 bool IsConnectedAndIdle() const override; | 67 bool IsConnectedAndIdle() const override; |
| 68 const BoundNetLog& NetLog() const override; | 68 const BoundNetLog& NetLog() const override; |
| 69 void SetSubresourceSpeculation() override; | 69 void SetSubresourceSpeculation() override; |
| 70 void SetOmniboxSpeculation() override; | 70 void SetOmniboxSpeculation() override; |
| 71 bool WasEverUsed() const override; | 71 bool WasEverUsed() const override; |
| 72 bool UsingTCPFastOpen() const override; | 72 bool UsingTCPFastOpen() const override; |
| 73 bool WasNpnNegotiated() const override; | 73 bool WasNpnNegotiated() const override; |
| 74 NextProto GetNegotiatedProtocol() const override; | 74 NextProto GetNegotiatedProtocol() const override; |
| 75 bool GetSSLInfo(SSLInfo* ssl_info) override; | 75 bool GetSSLInfo(SSLInfo* ssl_info) override; |
| 76 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
| 77 void ClearConnectionAttempts() override {} |
| 78 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
| 76 | 79 |
| 77 // Socket implementation. | 80 // Socket implementation. |
| 78 int Read(IOBuffer* buf, | 81 int Read(IOBuffer* buf, |
| 79 int buf_len, | 82 int buf_len, |
| 80 const CompletionCallback& callback) override; | 83 const CompletionCallback& callback) override; |
| 81 int Write(IOBuffer* buf, | 84 int Write(IOBuffer* buf, |
| 82 int buf_len, | 85 int buf_len, |
| 83 const CompletionCallback& callback) override; | 86 const CompletionCallback& callback) override; |
| 84 int SetReceiveBufferSize(int32 size) override; | 87 int SetReceiveBufferSize(int32 size) override; |
| 85 int SetSendBufferSize(int32 size) override; | 88 int SetSendBufferSize(int32 size) override; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 // Only used for posting write callbacks. Weak pointers created by this | 175 // Only used for posting write callbacks. Weak pointers created by this |
| 173 // factory are invalidated in Disconnect(). | 176 // factory are invalidated in Disconnect(). |
| 174 base::WeakPtrFactory<SpdyProxyClientSocket> write_callback_weak_factory_; | 177 base::WeakPtrFactory<SpdyProxyClientSocket> write_callback_weak_factory_; |
| 175 | 178 |
| 176 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); | 179 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); |
| 177 }; | 180 }; |
| 178 | 181 |
| 179 } // namespace net | 182 } // namespace net |
| 180 | 183 |
| 181 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 184 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |