Chromium Code Reviews| Index: net/http/proxy_client_socket.h |
| =================================================================== |
| --- net/http/proxy_client_socket.h (revision 117986) |
| +++ net/http/proxy_client_socket.h (working copy) |
| @@ -12,6 +12,7 @@ |
| class HttpStream; |
| class HttpResponseInfo; |
| +class HttpAuthController; |
| class NET_EXPORT_PRIVATE ProxyClientSocket : public StreamSocket { |
| public: |
| @@ -26,6 +27,15 @@ |
| // which can be used to read the response body. |
| virtual HttpStream* CreateConnectResponseStream() = 0; |
| + // Returns the HttpAuthController which can be used |
| + // to interact with an HTTP Proxy Authorization Required (407) request. |
| + virtual const scoped_refptr<HttpAuthController>& auth_controller() = 0; |
|
cbentzel
2012/01/20 02:09:46
Nit: Should be named GetAuthController. auth_contr
Ryan Hamilton
2012/01/20 04:20:04
Done.
|
| + |
| + // If Connect (or its callback) returns PROXY_AUTH_REQUESTED, then |
| + // credentials should be added to the HttpAuthController before calling |
| + // RestartWithAuth. |
| + virtual int RestartWithAuth(const CompletionCallback& callback) = 0; |
| + |
| private: |
| DISALLOW_COPY_AND_ASSIGN(ProxyClientSocket); |
| }; |