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

Unified Diff: net/http/http_cache_transaction.cc

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: adding a call in http_transactions to get the auth info 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/http/http_cache_transaction.cc
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc
index fce6bac43ce0d3389fc8ad0fa70ff05e9573edbe..46a1ab7876edf7e3115b24c63044ae27c9d35f1f 100644
--- a/net/http/http_cache_transaction.cc
+++ b/net/http/http_cache_transaction.cc
@@ -348,6 +348,10 @@ bool HttpCache::Transaction::IsReadyToRestartForAuth() {
return network_trans_->IsReadyToRestartForAuth();
}
+bool HttpCache::Transaction::HasAuth() const {
+ return network_trans_.get() ? network_trans_->HasAuth() : false;
+}
+
int HttpCache::Transaction::Read(IOBuffer* buf, int buf_len,
const CompletionCallback& callback) {
DCHECK(buf);

Powered by Google App Engine
This is Rietveld 408576698