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

Unified Diff: net/http/http_network_transaction.h

Issue 67117: Log an INFO message whenever we receive an auth challenge.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Address review comments Created 11 years, 8 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') | no next file with comments »
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 14068)
+++ net/http/http_network_transaction.h (working copy)
@@ -162,6 +162,10 @@
// origin server auth header, as specified by |target|
void AddAuthorizationHeader(HttpAuth::Target target);
+ // Returns a log message for all the response headers related to the auth
+ // challenge.
+ std::string AuthChallengeLogMessage() const;
+
// Handles HTTP status code 401 or 407.
// HandleAuthChallenge() returns a network error code, or OK on success.
// May update |pending_auth_target_| or |response_.auth_challenge|.
@@ -197,6 +201,10 @@
// For proxy authentication the path is always empty string.
std::string AuthPath(HttpAuth::Target target) const;
+ // Returns a string representation of a HttpAuth::Target value that can be
+ // used in log messages.
+ static std::string AuthTargetString(HttpAuth::Target target);
+
// The following three auth members are arrays of size two -- index 0 is
// for the proxy server, and index 1 is for the origin server.
// Use the enum HttpAuth::Target to index into them.
« no previous file with comments | « no previous file | net/http/http_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698