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

Unified Diff: net/url_request/url_request_job.h

Issue 13609002: fix a problem that android cannot download files with basic authentication (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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: net/url_request/url_request_job.h
diff --git a/net/url_request/url_request_job.h b/net/url_request/url_request_job.h
index ae956733ee700aae6e3759ee6b43b62c2e9adfbe..0a1c79fa8cbf759860f13ac7ec9734218cdc11db 100644
--- a/net/url_request/url_request_job.h
+++ b/net/url_request/url_request_job.h
@@ -157,6 +157,11 @@ class NET_EXPORT URLRequestJob : public base::RefCounted<URLRequestJob>,
// obtaining the credentials passing them to SetAuth.
virtual bool NeedsAuth();
+ // Determine whether the request has authentication credentials. This call
+ // will return true of SetAuth() is called without any subsequent CancelAuth()
+ // calls.
+ virtual bool HasAuth() const OVERRIDE;
+
// Fills the authentication info with the server's response.
virtual void GetAuthChallengeInfo(
scoped_refptr<AuthChallengeInfo>* auth_info);

Powered by Google App Engine
This is Rietveld 408576698