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 | |
60 // ProxyClientSocket methods: | 56 // ProxyClientSocket methods: |
61 virtual const HttpResponseInfo* GetConnectResponseInfo() const OVERRIDE; | 57 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. | |
66 virtual HttpStream* CreateConnectResponseStream() OVERRIDE; | 58 virtual HttpStream* CreateConnectResponseStream() OVERRIDE; |
| 59 virtual int RestartWithAuth(OldCompletionCallback* callback) OVERRIDE; |
| 60 virtual const scoped_refptr<HttpAuthController>& auth_controller() OVERRIDE; |
67 | 61 |
68 // StreamSocket methods: | 62 // StreamSocket methods: |
69 virtual int Connect(OldCompletionCallback* callback) OVERRIDE; | 63 virtual int Connect(OldCompletionCallback* callback) OVERRIDE; |
70 virtual void Disconnect() OVERRIDE; | 64 virtual void Disconnect() OVERRIDE; |
71 virtual bool IsConnected() const OVERRIDE; | 65 virtual bool IsConnected() const OVERRIDE; |
72 virtual bool IsConnectedAndIdle() const OVERRIDE; | 66 virtual bool IsConnectedAndIdle() const OVERRIDE; |
73 virtual const BoundNetLog& NetLog() const OVERRIDE; | 67 virtual const BoundNetLog& NetLog() const OVERRIDE; |
74 virtual void SetSubresourceSpeculation() OVERRIDE; | 68 virtual void SetSubresourceSpeculation() OVERRIDE; |
75 virtual void SetOmniboxSpeculation() OVERRIDE; | 69 virtual void SetOmniboxSpeculation() OVERRIDE; |
76 virtual bool WasEverUsed() const OVERRIDE; | 70 virtual bool WasEverUsed() const OVERRIDE; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 scoped_ptr<SpdyHttpStream> response_stream_; | 161 scoped_ptr<SpdyHttpStream> response_stream_; |
168 | 162 |
169 const BoundNetLog net_log_; | 163 const BoundNetLog net_log_; |
170 | 164 |
171 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); | 165 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); |
172 }; | 166 }; |
173 | 167 |
174 } // namespace net | 168 } // namespace net |
175 | 169 |
176 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 170 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
OLD | NEW |