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

Unified Diff: net/http/http_network_transaction.h

Issue 164504: Unescape username/passwords obtained from URLs before using them for HTTP aut... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 | net/http/http_network_transaction.cc » ('j') | net/http/http_network_transaction.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_transaction.h
===================================================================
--- net/http/http_network_transaction.h (revision 23194)
+++ net/http/http_network_transaction.h (working copy)
@@ -62,6 +62,8 @@
private:
FRIEND_TEST(HttpNetworkTransactionTest, ResetStateForRestart);
+ FRIEND_TEST(HttpNetworkTransactionTest, GetIdentifyFromUrl);
+ FRIEND_TEST(HttpNetworkTransactionTest, GetIdentifyFromUrl_UTF8);
// This version of IOBuffer lets us use a string as the real storage and
// "move" the data pointer inside the string before using it to do actual IO.
@@ -259,6 +261,12 @@
// was found.
bool SelectNextAuthIdentityToTry(HttpAuth::Target target);
+ // Extract the unescaped username/password from |url|, saving the results
+ // into |*username| and |*password|.
+ static void GetIdentifyFromUrl(const GURL& url,
wtc 2009/08/13 21:37:36 Consider moving this method to net_util.h, so that
+ std::wstring* username,
+ std::wstring* password);
+
// Searches the auth cache for an entry that encompasses the request's path.
// If such an entry is found, updates auth_identity_[target] and
// auth_handler_[target] with the cache entry's data and returns true.
« no previous file with comments | « no previous file | net/http/http_network_transaction.cc » ('j') | net/http/http_network_transaction.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698