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

Unified Diff: jingle/glue/proxy_resolving_client_socket.cc

Issue 414523005: Handles proxy authentication request in ProxyResolvingClientSocket (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/glue/proxy_resolving_client_socket.cc
diff --git a/jingle/glue/proxy_resolving_client_socket.cc b/jingle/glue/proxy_resolving_client_socket.cc
index c73601858405e5ba9919cfc93807f8ed46749ac6..e253db9bc1f131758a9a5eeb54a56dfd4642d980 100644
--- a/jingle/glue/proxy_resolving_client_socket.cc
+++ b/jingle/glue/proxy_resolving_client_socket.cc
@@ -13,6 +13,7 @@
#include "net/base/load_flags.h"
#include "net/base/net_errors.h"
#include "net/http/http_network_session.h"
+#include "net/http/http_transaction_factory.h"
#include "net/socket/client_socket_handle.h"
#include "net/socket/client_socket_pool_manager.h"
#include "net/url_request/url_request_context.h"
@@ -91,6 +92,11 @@ ProxyResolvingClientSocket::ProxyResolvingClientSocket(
}
network_session_ = new net::HttpNetworkSession(session_params);
+
+ net::HttpAuthCache* existing_cache =
+ request_context->http_transaction_factory()
+ ->GetSession()->http_auth_cache();
+ network_session_->http_auth_cache()->UpdateAllFrom(*existing_cache);
Ryan Sleevi 2014/08/23 02:47:12 Create your own HttpAuthCache. Confirm that you r
}
ProxyResolvingClientSocket::~ProxyResolvingClientSocket() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698