| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 const HttpResponseInfo* GetConnectResponseInfo() const { | 60 const HttpResponseInfo* GetConnectResponseInfo() const { |
| 61 return response_.headers ? &response_ : NULL; | 61 return response_.headers ? &response_ : NULL; |
| 62 } | 62 } |
| 63 | 63 |
| 64 // ClientSocket methods: | 64 // ClientSocket methods: |
| 65 virtual int Connect(CompletionCallback* callback); | 65 virtual int Connect(CompletionCallback* callback); |
| 66 virtual void Disconnect(); | 66 virtual void Disconnect(); |
| 67 virtual bool IsConnected() const; | 67 virtual bool IsConnected() const; |
| 68 virtual bool IsConnectedAndIdle() const; | 68 virtual bool IsConnectedAndIdle() const; |
| 69 virtual const BoundNetLog& NetLog() const { return net_log_; } | 69 virtual const BoundNetLog& NetLog() const; |
| 70 virtual void SetSubresourceSpeculation(); | 70 virtual void SetSubresourceSpeculation(); |
| 71 virtual void SetOmniboxSpeculation(); | 71 virtual void SetOmniboxSpeculation(); |
| 72 virtual bool WasEverUsed() const; | 72 virtual bool WasEverUsed() const; |
| 73 virtual bool UsingTCPFastOpen() const; | 73 virtual bool UsingTCPFastOpen() const; |
| 74 | 74 |
| 75 // Socket methods: | 75 // Socket methods: |
| 76 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 76 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 77 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 77 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 78 virtual bool SetReceiveBufferSize(int32 size); | 78 virtual bool SetReceiveBufferSize(int32 size); |
| 79 virtual bool SetSendBufferSize(int32 size); | 79 virtual bool SetSendBufferSize(int32 size); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 bool was_ever_used_; | 153 bool was_ever_used_; |
| 154 | 154 |
| 155 const BoundNetLog net_log_; | 155 const BoundNetLog net_log_; |
| 156 | 156 |
| 157 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); | 157 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 } // namespace net | 160 } // namespace net |
| 161 | 161 |
| 162 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 162 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |