OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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_ |
OLD | NEW |