| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <list> | 10 #include <list> |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // ClientSocket methods: | 64 // ClientSocket methods: |
| 65 | 65 |
| 66 virtual int Connect(CompletionCallback* callback); | 66 virtual int Connect(CompletionCallback* callback); |
| 67 virtual void Disconnect(); | 67 virtual void Disconnect(); |
| 68 virtual bool IsConnected() const; | 68 virtual bool IsConnected() const; |
| 69 virtual bool IsConnectedAndIdle() const; | 69 virtual bool IsConnectedAndIdle() const; |
| 70 virtual const BoundNetLog& NetLog() const { return net_log_; } | 70 virtual const BoundNetLog& NetLog() const { return net_log_; } |
| 71 virtual void SetSubresourceSpeculation(); | 71 virtual void SetSubresourceSpeculation(); |
| 72 virtual void SetOmniboxSpeculation(); | 72 virtual void SetOmniboxSpeculation(); |
| 73 virtual bool WasEverUsed() const; | 73 virtual bool WasEverUsed() const; |
| 74 virtual bool UsingTCPFastOpen() const; |
| 74 | 75 |
| 75 // Socket methods: | 76 // Socket methods: |
| 76 | 77 |
| 77 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 78 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 78 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 79 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 79 | 80 |
| 80 virtual bool SetReceiveBufferSize(int32 size); | 81 virtual bool SetReceiveBufferSize(int32 size); |
| 81 virtual bool SetSendBufferSize(int32 size); | 82 virtual bool SetSendBufferSize(int32 size); |
| 82 | 83 |
| 83 virtual int GetPeerAddress(AddressList* address) const; | 84 virtual int GetPeerAddress(AddressList* address) const; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 bool was_ever_used_; | 176 bool was_ever_used_; |
| 176 | 177 |
| 177 const BoundNetLog net_log_; | 178 const BoundNetLog net_log_; |
| 178 | 179 |
| 179 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); | 180 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); |
| 180 }; | 181 }; |
| 181 | 182 |
| 182 } // namespace net | 183 } // namespace net |
| 183 | 184 |
| 184 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 185 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |