OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 virtual int RestartIgnoringLastError(CompletionCallback* callback); | 46 virtual int RestartIgnoringLastError(CompletionCallback* callback); |
47 virtual int RestartWithCertificate(X509Certificate* client_cert, | 47 virtual int RestartWithCertificate(X509Certificate* client_cert, |
48 CompletionCallback* callback); | 48 CompletionCallback* callback); |
49 virtual int RestartWithAuth(const string16& username, | 49 virtual int RestartWithAuth(const string16& username, |
50 const string16& password, | 50 const string16& password, |
51 CompletionCallback* callback); | 51 CompletionCallback* callback); |
52 virtual bool IsReadyToRestartForAuth(); | 52 virtual bool IsReadyToRestartForAuth(); |
53 | 53 |
54 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 54 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
55 virtual void StopCaching() {} | 55 virtual void StopCaching() {} |
| 56 virtual void DoneReading() {} |
56 virtual const HttpResponseInfo* GetResponseInfo() const; | 57 virtual const HttpResponseInfo* GetResponseInfo() const; |
57 virtual LoadState GetLoadState() const; | 58 virtual LoadState GetLoadState() const; |
58 virtual uint64 GetUploadProgress() const; | 59 virtual uint64 GetUploadProgress() const; |
59 | 60 |
60 // HttpStreamRequest::Delegate methods: | 61 // HttpStreamRequest::Delegate methods: |
61 virtual void OnStreamReady(const SSLConfig& used_ssl_config, | 62 virtual void OnStreamReady(const SSLConfig& used_ssl_config, |
62 const ProxyInfo& used_proxy_info, | 63 const ProxyInfo& used_proxy_info, |
63 HttpStream* stream); | 64 HttpStream* stream); |
64 virtual void OnStreamFailed(int status, | 65 virtual void OnStreamFailed(int status, |
65 const SSLConfig& used_ssl_config); | 66 const SSLConfig& used_ssl_config); |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 // True when the tunnel is in the process of being established - we can't | 269 // True when the tunnel is in the process of being established - we can't |
269 // read from the socket until the tunnel is done. | 270 // read from the socket until the tunnel is done. |
270 bool establishing_tunnel_; | 271 bool establishing_tunnel_; |
271 | 272 |
272 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); | 273 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); |
273 }; | 274 }; |
274 | 275 |
275 } // namespace net | 276 } // namespace net |
276 | 277 |
277 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 278 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
OLD | NEW |