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

Unified Diff: net/url_request/url_request.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.h
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index 27db7d0ef505b755ec00fd5c6298932725e8720f..79cb7fdc1aab6d2bb85f4b673ce700bac1ec4641 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -595,6 +595,9 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
void SetAuth(const AuthCredentials& credentials);
void CancelAuth();
+ // Check whether the request has authentication credentials.
+ bool HasAuth() const;
+
// This method can be called after the user selects a client certificate to
// instruct this URLRequest to continue with the request with the
// certificate. Pass NULL if the user doesn't have a client certificate.

Powered by Google App Engine
This is Rietveld 408576698