Chromium Code Reviews| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 const HostPortPair& endpoint, | 48 const HostPortPair& endpoint, |
| 49 const GURL& url, | 49 const GURL& url, |
| 50 const HostPortPair& proxy_server, | 50 const HostPortPair& proxy_server, |
| 51 HttpAuthCache* auth_cache, | 51 HttpAuthCache* auth_cache, |
| 52 HttpAuthHandlerFactory* auth_handler_factory); | 52 HttpAuthHandlerFactory* auth_handler_factory); |
| 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() { | |
| 59 return auth_; | |
| 60 } | |
| 61 | |
| 62 // ProxyClientSocket methods: | 58 // ProxyClientSocket methods: |
| 63 virtual const HttpResponseInfo* GetConnectResponseInfo() const; | 59 virtual const HttpResponseInfo* GetConnectResponseInfo() const; |
| 64 | |
| 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 | |
| 67 // the response body. | |
| 68 virtual HttpStream* CreateConnectResponseStream(); | 60 virtual HttpStream* CreateConnectResponseStream(); |
| 61 virtual int RestartWithAuth(OldCompletionCallback* callback); | |
|
cbentzel
2011/11/14 22:11:53
Add an OVERRIDE here.
Ryan Hamilton
2011/11/14 23:53:40
Done.
| |
| 62 virtual const scoped_refptr<HttpAuthController>& auth_controller(); | |
|
cbentzel
2011/11/14 22:11:53
Ditto.
Ryan Hamilton
2011/11/14 23:53:40
Done. And to the other ProxyClientSocket methods.
| |
| 69 | 63 |
| 70 // StreamSocket methods: | 64 // StreamSocket methods: |
| 71 virtual int Connect(OldCompletionCallback* callback); | 65 virtual int Connect(OldCompletionCallback* callback); |
| 72 virtual void Disconnect(); | 66 virtual void Disconnect(); |
| 73 virtual bool IsConnected() const; | 67 virtual bool IsConnected() const; |
| 74 virtual bool IsConnectedAndIdle() const; | 68 virtual bool IsConnectedAndIdle() const; |
| 75 virtual const BoundNetLog& NetLog() const; | 69 virtual const BoundNetLog& NetLog() const; |
| 76 virtual void SetSubresourceSpeculation(); | 70 virtual void SetSubresourceSpeculation(); |
| 77 virtual void SetOmniboxSpeculation(); | 71 virtual void SetOmniboxSpeculation(); |
| 78 virtual bool WasEverUsed() const; | 72 virtual bool WasEverUsed() const; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 165 scoped_ptr<SpdyHttpStream> response_stream_; | 159 scoped_ptr<SpdyHttpStream> response_stream_; |
| 166 | 160 |
| 167 const BoundNetLog net_log_; | 161 const BoundNetLog net_log_; |
| 168 | 162 |
| 169 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); | 163 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); |
| 170 }; | 164 }; |
| 171 | 165 |
| 172 } // namespace net | 166 } // namespace net |
| 173 | 167 |
| 174 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 168 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |