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