Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Unified Diff: net/http/http_stream_factory_impl_job.h

Issue 9148011: Allow chrome to handle 407 auth challenges to CONNECT requests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_proxy_utils.cc ('k') | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_stream_factory_impl_job.h
===================================================================
--- net/http/http_stream_factory_impl_job.h (revision 118888)
+++ net/http/http_stream_factory_impl_job.h (working copy)
@@ -13,6 +13,7 @@
#include "net/base/ssl_config_service.h"
#include "net/http/http_auth.h"
#include "net/http/http_auth_controller.h"
+#include "net/http/http_proxy_client_socket_pool.h"
#include "net/http/http_request_info.h"
#include "net/http/http_stream_factory_impl.h"
#include "net/proxy/proxy_service.h"
@@ -46,7 +47,8 @@
// appropriate ClientSocketPool.
int Preconnect(int num_streams);
- int RestartTunnelWithProxyAuth(const AuthCredentials& credentials);
+ int RestartTunnelWithProxyAuth();
+
LoadState GetLoadState() const;
// Marks this Job as the "alternate" job, from Alternate-Protocol. Tracks the
@@ -123,6 +125,9 @@
void OnCertificateErrorCallback(int result, const SSLInfo& ssl_info);
void OnNeedsProxyAuthCallback(const HttpResponseInfo& response_info,
HttpAuthController* auth_controller);
+ void OnNeedsProxyTunnelAuthCallback(const HttpResponseInfo& response_info,
+ HttpAuthController* auth_controller,
+ CompletionCallback callback);
void OnNeedsClientAuthCallback(SSLCertRequestInfo* cert_info);
void OnHttpsProxyTunnelResponseCallback(const HttpResponseInfo& response_info,
HttpStream* stream);
@@ -153,6 +158,8 @@
// Returns to STATE_INIT_CONNECTION and resets some state.
void ReturnToStateInitConnection(bool close_connection);
+ void DoRestartTunnelWithProxyAuth();
+
// Set the motivation for this request onto the underlying socket.
void SetSocketMotivation();
@@ -255,6 +262,9 @@
scoped_refptr<HttpAuthController>
auth_controllers_[HttpAuth::AUTH_NUM_TARGETS];
+ // Invoked after a request for tunnel auth has been handled.
+ CompletionCallback tunnel_auth_handled_callback_;
+
// True when the tunnel is in the process of being established - we can't
// read from the socket until the tunnel is done.
bool establishing_tunnel_;
« no previous file with comments | « net/http/http_proxy_utils.cc ('k') | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698