| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 | 54 |
| 55 // On destruction Disconnect() is called. | 55 // On destruction Disconnect() is called. |
| 56 virtual ~SpdyProxyClientSocket(); | 56 virtual ~SpdyProxyClientSocket(); |
| 57 | 57 |
| 58 const scoped_refptr<HttpAuthController>& auth_controller() { | 58 const scoped_refptr<HttpAuthController>& auth_controller() { |
| 59 return auth_; | 59 return auth_; |
| 60 } | 60 } |
| 61 | 61 |
| 62 // ProxyClientSocket methods: | 62 // ProxyClientSocket methods: |
| 63 | 63 virtual const HttpResponseInfo* GetConnectResponseInfo() const; |
| 64 virtual const HttpResponseInfo* GetConnectResponseInfo() const { | |
| 65 return response_.headers ? &response_ : NULL; | |
| 66 } | |
| 67 | 64 |
| 68 // 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 |
| 69 // 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 |
| 70 // the response body. | 67 // the response body. |
| 71 virtual HttpStream* CreateConnectResponseStream(); | 68 virtual HttpStream* CreateConnectResponseStream(); |
| 72 | 69 |
| 73 // ClientSocket methods: | 70 // ClientSocket methods: |
| 74 virtual int Connect(CompletionCallback* callback); | 71 virtual int Connect(CompletionCallback* callback); |
| 75 virtual void Disconnect(); | 72 virtual void Disconnect(); |
| 76 virtual bool IsConnected() const; | 73 virtual bool IsConnected() const; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 scoped_ptr<SpdyHttpStream> response_stream_; | 161 scoped_ptr<SpdyHttpStream> response_stream_; |
| 165 | 162 |
| 166 const BoundNetLog net_log_; | 163 const BoundNetLog net_log_; |
| 167 | 164 |
| 168 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); | 165 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); |
| 169 }; | 166 }; |
| 170 | 167 |
| 171 } // namespace net | 168 } // namespace net |
| 172 | 169 |
| 173 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 170 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |