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

Side by Side Diff: net/http/http_network_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
« no previous file with comments | « net/http/http_cache_transaction.cc ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const CompletionCallback& callback, 45 const CompletionCallback& callback,
46 const BoundNetLog& net_log) OVERRIDE; 46 const BoundNetLog& net_log) OVERRIDE;
47 virtual int RestartIgnoringLastError( 47 virtual int RestartIgnoringLastError(
48 const CompletionCallback& callback) OVERRIDE; 48 const CompletionCallback& callback) OVERRIDE;
49 virtual int RestartWithCertificate( 49 virtual int RestartWithCertificate(
50 X509Certificate* client_cert, 50 X509Certificate* client_cert,
51 const CompletionCallback& callback) OVERRIDE; 51 const CompletionCallback& callback) OVERRIDE;
52 virtual int RestartWithAuth(const AuthCredentials& credentials, 52 virtual int RestartWithAuth(const AuthCredentials& credentials,
53 const CompletionCallback& callback) OVERRIDE; 53 const CompletionCallback& callback) OVERRIDE;
54 virtual bool IsReadyToRestartForAuth() OVERRIDE; 54 virtual bool IsReadyToRestartForAuth() OVERRIDE;
55 virtual bool HasAuth() const OVERRIDE;
asanka 2013/04/05 16:04:50 This is confusingly similar to HaveAuth() below bu
qinmin 2013/04/05 17:12:08 moved this logic to httpresponseinfo and renamed i
55 56
56 virtual int Read(IOBuffer* buf, 57 virtual int Read(IOBuffer* buf,
57 int buf_len, 58 int buf_len,
58 const CompletionCallback& callback) OVERRIDE; 59 const CompletionCallback& callback) OVERRIDE;
59 virtual void StopCaching() OVERRIDE {} 60 virtual void StopCaching() OVERRIDE {}
60 virtual void DoneReading() OVERRIDE {} 61 virtual void DoneReading() OVERRIDE {}
61 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE; 62 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE;
62 virtual LoadState GetLoadState() const OVERRIDE; 63 virtual LoadState GetLoadState() const OVERRIDE;
63 virtual UploadProgress GetUploadProgress() const OVERRIDE; 64 virtual UploadProgress GetUploadProgress() const OVERRIDE;
64 virtual bool GetLoadTimingInfo( 65 virtual bool GetLoadTimingInfo(
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // True when the tunnel is in the process of being established - we can't 309 // True when the tunnel is in the process of being established - we can't
309 // read from the socket until the tunnel is done. 310 // read from the socket until the tunnel is done.
310 bool establishing_tunnel_; 311 bool establishing_tunnel_;
311 312
312 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); 313 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction);
313 }; 314 };
314 315
315 } // namespace net 316 } // namespace net
316 317
317 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 318 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
OLDNEW
« no previous file with comments | « net/http/http_cache_transaction.cc ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698