| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 } | 60 } |
| 61 | 61 |
| 62 // ProxyClientSocket methods: | 62 // ProxyClientSocket methods: |
| 63 virtual const HttpResponseInfo* GetConnectResponseInfo() const; | 63 virtual const HttpResponseInfo* GetConnectResponseInfo() const; |
| 64 | 64 |
| 65 // In the event of a non-200 response to the CONNECT request, this | 65 // In the event of a non-200 response to the CONNECT request, this |
| 66 // method may be called to return an HttpStream in order to read | 66 // method may be called to return an HttpStream in order to read |
| 67 // the response body. | 67 // the response body. |
| 68 virtual HttpStream* CreateConnectResponseStream(); | 68 virtual HttpStream* CreateConnectResponseStream(); |
| 69 | 69 |
| 70 // ClientSocket methods: | 70 // StreamSocket methods: |
| 71 virtual int Connect(CompletionCallback* callback); | 71 virtual int Connect(CompletionCallback* callback); |
| 72 virtual void Disconnect(); | 72 virtual void Disconnect(); |
| 73 virtual bool IsConnected() const; | 73 virtual bool IsConnected() const; |
| 74 virtual bool IsConnectedAndIdle() const; | 74 virtual bool IsConnectedAndIdle() const; |
| 75 virtual const BoundNetLog& NetLog() const; | 75 virtual const BoundNetLog& NetLog() const; |
| 76 virtual void SetSubresourceSpeculation(); | 76 virtual void SetSubresourceSpeculation(); |
| 77 virtual void SetOmniboxSpeculation(); | 77 virtual void SetOmniboxSpeculation(); |
| 78 virtual bool WasEverUsed() const; | 78 virtual bool WasEverUsed() const; |
| 79 virtual bool UsingTCPFastOpen() const; | 79 virtual bool UsingTCPFastOpen() const; |
| 80 | 80 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 scoped_ptr<SpdyHttpStream> response_stream_; | 163 scoped_ptr<SpdyHttpStream> response_stream_; |
| 164 | 164 |
| 165 const BoundNetLog net_log_; | 165 const BoundNetLog net_log_; |
| 166 | 166 |
| 167 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); | 167 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); |
| 168 }; | 168 }; |
| 169 | 169 |
| 170 } // namespace net | 170 } // namespace net |
| 171 | 171 |
| 172 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 172 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |