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

Unified Diff: jingle/notifier/base/proxy_resolving_client_socket.cc

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
Index: jingle/notifier/base/proxy_resolving_client_socket.cc
===================================================================
--- jingle/notifier/base/proxy_resolving_client_socket.cc (revision 117986)
+++ jingle/notifier/base/proxy_resolving_client_socket.cc (working copy)
@@ -172,7 +172,9 @@
// Now that we have resolved the proxy, we need to connect.
status = net::InitSocketHandleForRawConnect(
dest_host_port_pair_, network_session_.get(), proxy_info_, ssl_config_,
- ssl_config_, bound_net_log_, transport_.get(), connect_callback_);
+ ssl_config_, bound_net_log_, transport_.get(), connect_callback_,
+ base::Bind(&ProxyResolvingClientSocket::OnNeedsProxyTunnelAuthCallback,
+ base::Unretained(this)));
if (status != net::ERR_IO_PENDING) {
// Since this method is always called asynchronously. it is OK to call
// ProcessConnectDone synchronously.
@@ -180,6 +182,14 @@
}
}
+void ProxyResolvingClientSocket::OnNeedsProxyTunnelAuthCallback(
+ const net::HttpResponseInfo& response_info,
+ net::HttpAuthController* auth_controller,
+ net::CompletionCallback callback) {
+ // TODO(rch): figure out what to do here
cbentzel 2012/01/18 12:14:22 Do you want to figure this out prior to landing th
akalin 2012/01/19 21:07:37 so I tried to trace through what 'regular' sockets
Ryan Hamilton 2012/01/19 23:11:19 Done.
Ryan Hamilton 2012/01/19 23:11:19 Done.
+ callback.Run(net::OK);
+}
+
void ProxyResolvingClientSocket::ProcessConnectDone(int status) {
if (status != net::OK) {
// If the connection fails, try another proxy.

Powered by Google App Engine
This is Rietveld 408576698