Index: net/http/proxy_client_socket.h |
=================================================================== |
--- net/http/proxy_client_socket.h (revision 108933) |
+++ net/http/proxy_client_socket.h (working copy) |
@@ -6,6 +6,7 @@ |
#define NET_HTTP_PROXY_CLIENT_SOCKET_H_ |
#pragma once |
+#include "net/http/http_auth_controller.h" |
cbentzel
2011/11/14 22:11:53
Can you forward declare instead?
Ryan Hamilton
2011/11/14 23:53:40
Done.
|
#include "net/socket/stream_socket.h" |
namespace net { |
@@ -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; |
+ |
+ // If Connect (or its callback) returns PROXY_AUTH_REQUESTED, then |
+ // credentials should be added to the HttpAuthController before calling |
+ // RestartWithAuth. |
+ virtual int RestartWithAuth(OldCompletionCallback* callback) = 0; |
+ |
private: |
DISALLOW_COPY_AND_ASSIGN(ProxyClientSocket); |
}; |