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

Side by Side Diff: net/http/http_cache_transaction.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: adding a call in http_transactions to get the auth info Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file declares HttpCache::Transaction, a private class of HttpCache so 5 // This file declares HttpCache::Transaction, a private class of HttpCache so
6 // it should only be included by http_cache.cc 6 // it should only be included by http_cache.cc
7 7
8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_
9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 const CompletionCallback& callback, 109 const CompletionCallback& callback,
110 const BoundNetLog& net_log) OVERRIDE; 110 const BoundNetLog& net_log) OVERRIDE;
111 virtual int RestartIgnoringLastError( 111 virtual int RestartIgnoringLastError(
112 const CompletionCallback& callback) OVERRIDE; 112 const CompletionCallback& callback) OVERRIDE;
113 virtual int RestartWithCertificate( 113 virtual int RestartWithCertificate(
114 X509Certificate* client_cert, 114 X509Certificate* client_cert,
115 const CompletionCallback& callback) OVERRIDE; 115 const CompletionCallback& callback) OVERRIDE;
116 virtual int RestartWithAuth(const AuthCredentials& credentials, 116 virtual int RestartWithAuth(const AuthCredentials& credentials,
117 const CompletionCallback& callback) OVERRIDE; 117 const CompletionCallback& callback) OVERRIDE;
118 virtual bool IsReadyToRestartForAuth() OVERRIDE; 118 virtual bool IsReadyToRestartForAuth() OVERRIDE;
119 virtual bool HasAuth() const OVERRIDE;
119 virtual int Read(IOBuffer* buf, 120 virtual int Read(IOBuffer* buf,
120 int buf_len, 121 int buf_len,
121 const CompletionCallback& callback) OVERRIDE; 122 const CompletionCallback& callback) OVERRIDE;
122 virtual void StopCaching() OVERRIDE; 123 virtual void StopCaching() OVERRIDE;
123 virtual void DoneReading() OVERRIDE; 124 virtual void DoneReading() OVERRIDE;
124 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE; 125 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE;
125 virtual LoadState GetLoadState() const OVERRIDE; 126 virtual LoadState GetLoadState() const OVERRIDE;
126 virtual UploadProgress GetUploadProgress(void) const OVERRIDE; 127 virtual UploadProgress GetUploadProgress(void) const OVERRIDE;
127 virtual bool GetLoadTimingInfo( 128 virtual bool GetLoadTimingInfo(
128 LoadTimingInfo* load_timing_info) const OVERRIDE; 129 LoadTimingInfo* load_timing_info) const OVERRIDE;
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 // For sensitivity analysis, the simulated increase in cache service times, 446 // For sensitivity analysis, the simulated increase in cache service times,
446 // in percent. 447 // in percent.
447 int sensitivity_analysis_percent_increase_; 448 int sensitivity_analysis_percent_increase_;
448 449
449 HttpTransactionDelegate* transaction_delegate_; 450 HttpTransactionDelegate* transaction_delegate_;
450 }; 451 };
451 452
452 } // namespace net 453 } // namespace net
453 454
454 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 455 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698