| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 const HostPortPair& endpoint, | 46 const HostPortPair& endpoint, |
| 47 const GURL& url, | 47 const GURL& url, |
| 48 const HostPortPair& proxy_server, | 48 const HostPortPair& proxy_server, |
| 49 HttpAuthCache* auth_cache, | 49 HttpAuthCache* auth_cache, |
| 50 HttpAuthHandlerFactory* auth_handler_factory); | 50 HttpAuthHandlerFactory* auth_handler_factory); |
| 51 | 51 |
| 52 | 52 |
| 53 // On destruction Disconnect() is called. | 53 // On destruction Disconnect() is called. |
| 54 virtual ~SpdyProxyClientSocket(); | 54 virtual ~SpdyProxyClientSocket(); |
| 55 | 55 |
| 56 const scoped_refptr<HttpAuthController>& auth_controller() { |
| 57 return auth_; |
| 58 } |
| 59 |
| 56 // ProxyClientSocket methods: | 60 // ProxyClientSocket methods: |
| 57 virtual const HttpResponseInfo* GetConnectResponseInfo() const OVERRIDE; | 61 virtual const HttpResponseInfo* GetConnectResponseInfo() const OVERRIDE; |
| 62 |
| 63 // In the event of a non-200 response to the CONNECT request, this |
| 64 // method may be called to return an HttpStream in order to read |
| 65 // the response body. |
| 58 virtual HttpStream* CreateConnectResponseStream() OVERRIDE; | 66 virtual HttpStream* CreateConnectResponseStream() OVERRIDE; |
| 59 virtual int RestartWithAuth(OldCompletionCallback* callback) OVERRIDE; | |
| 60 virtual const scoped_refptr<HttpAuthController>& auth_controller() OVERRIDE; | |
| 61 | 67 |
| 62 // StreamSocket methods: | 68 // StreamSocket methods: |
| 63 virtual int Connect(OldCompletionCallback* callback) OVERRIDE; | 69 virtual int Connect(OldCompletionCallback* callback) OVERRIDE; |
| 64 virtual void Disconnect() OVERRIDE; | 70 virtual void Disconnect() OVERRIDE; |
| 65 virtual bool IsConnected() const OVERRIDE; | 71 virtual bool IsConnected() const OVERRIDE; |
| 66 virtual bool IsConnectedAndIdle() const OVERRIDE; | 72 virtual bool IsConnectedAndIdle() const OVERRIDE; |
| 67 virtual const BoundNetLog& NetLog() const OVERRIDE; | 73 virtual const BoundNetLog& NetLog() const OVERRIDE; |
| 68 virtual void SetSubresourceSpeculation() OVERRIDE; | 74 virtual void SetSubresourceSpeculation() OVERRIDE; |
| 69 virtual void SetOmniboxSpeculation() OVERRIDE; | 75 virtual void SetOmniboxSpeculation() OVERRIDE; |
| 70 virtual bool WasEverUsed() const OVERRIDE; | 76 virtual bool WasEverUsed() const OVERRIDE; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 scoped_ptr<SpdyHttpStream> response_stream_; | 167 scoped_ptr<SpdyHttpStream> response_stream_; |
| 162 | 168 |
| 163 const BoundNetLog net_log_; | 169 const BoundNetLog net_log_; |
| 164 | 170 |
| 165 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); | 171 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); |
| 166 }; | 172 }; |
| 167 | 173 |
| 168 } // namespace net | 174 } // namespace net |
| 169 | 175 |
| 170 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 176 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |