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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 virtual bool IsReadyToRestartForAuth() OVERRIDE; | 54 virtual bool IsReadyToRestartForAuth() OVERRIDE; |
55 | 55 |
56 virtual int Read(IOBuffer* buf, | 56 virtual int Read(IOBuffer* buf, |
57 int buf_len, | 57 int buf_len, |
58 const CompletionCallback& callback) OVERRIDE; | 58 const CompletionCallback& callback) OVERRIDE; |
59 virtual void StopCaching() OVERRIDE {} | 59 virtual void StopCaching() OVERRIDE {} |
60 virtual void DoneReading() OVERRIDE {} | 60 virtual void DoneReading() OVERRIDE {} |
61 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE; | 61 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE; |
62 virtual LoadState GetLoadState() const OVERRIDE; | 62 virtual LoadState GetLoadState() const OVERRIDE; |
63 virtual UploadProgress GetUploadProgress() const OVERRIDE; | 63 virtual UploadProgress GetUploadProgress() const OVERRIDE; |
| 64 virtual bool GetLoadTimingInfo( |
| 65 LoadTimingInfo* load_timing_info) const OVERRIDE; |
| 66 virtual void SetPriority(RequestPriority priority) OVERRIDE; |
64 | 67 |
65 // HttpStreamRequest::Delegate methods: | 68 // HttpStreamRequest::Delegate methods: |
66 virtual void OnStreamReady(const SSLConfig& used_ssl_config, | 69 virtual void OnStreamReady(const SSLConfig& used_ssl_config, |
67 const ProxyInfo& used_proxy_info, | 70 const ProxyInfo& used_proxy_info, |
68 HttpStreamBase* stream) OVERRIDE; | 71 HttpStreamBase* stream) OVERRIDE; |
69 virtual void OnStreamFailed(int status, | 72 virtual void OnStreamFailed(int status, |
70 const SSLConfig& used_ssl_config) OVERRIDE; | 73 const SSLConfig& used_ssl_config) OVERRIDE; |
71 virtual void OnCertificateError(int status, | 74 virtual void OnCertificateError(int status, |
72 const SSLConfig& used_ssl_config, | 75 const SSLConfig& used_ssl_config, |
73 const SSLInfo& ssl_info) OVERRIDE; | 76 const SSLInfo& ssl_info) OVERRIDE; |
74 virtual void OnNeedsProxyAuth( | 77 virtual void OnNeedsProxyAuth( |
75 const HttpResponseInfo& response_info, | 78 const HttpResponseInfo& response_info, |
76 const SSLConfig& used_ssl_config, | 79 const SSLConfig& used_ssl_config, |
77 const ProxyInfo& used_proxy_info, | 80 const ProxyInfo& used_proxy_info, |
78 HttpAuthController* auth_controller) OVERRIDE; | 81 HttpAuthController* auth_controller) OVERRIDE; |
79 virtual void OnNeedsClientAuth(const SSLConfig& used_ssl_config, | 82 virtual void OnNeedsClientAuth(const SSLConfig& used_ssl_config, |
80 SSLCertRequestInfo* cert_info) OVERRIDE; | 83 SSLCertRequestInfo* cert_info) OVERRIDE; |
81 virtual void OnHttpsProxyTunnelResponse(const HttpResponseInfo& response_info, | 84 virtual void OnHttpsProxyTunnelResponse(const HttpResponseInfo& response_info, |
82 const SSLConfig& used_ssl_config, | 85 const SSLConfig& used_ssl_config, |
83 const ProxyInfo& used_proxy_info, | 86 const ProxyInfo& used_proxy_info, |
84 HttpStreamBase* stream) OVERRIDE; | 87 HttpStreamBase* stream) OVERRIDE; |
85 | 88 |
86 virtual bool GetLoadTimingInfo( | |
87 LoadTimingInfo* load_timing_info) const OVERRIDE; | |
88 | |
89 private: | 89 private: |
90 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionSpdy2Test, | 90 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionSpdy2Test, |
91 ResetStateForRestart); | 91 ResetStateForRestart); |
92 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionSpdy3Test, | 92 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionSpdy3Test, |
93 ResetStateForRestart); | 93 ResetStateForRestart); |
94 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy2Test, | 94 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy2Test, |
95 WindowUpdateReceived); | 95 WindowUpdateReceived); |
96 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy2Test, | 96 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy2Test, |
97 WindowUpdateSent); | 97 WindowUpdateSent); |
98 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy2Test, | 98 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy2Test, |
(...skipping 209 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 | 308 // True when the tunnel is in the process of being established - we can't |
309 // read from the socket until the tunnel is done. | 309 // read from the socket until the tunnel is done. |
310 bool establishing_tunnel_; | 310 bool establishing_tunnel_; |
311 | 311 |
312 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); | 312 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); |
313 }; | 313 }; |
314 | 314 |
315 } // namespace net | 315 } // namespace net |
316 | 316 |
317 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 317 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
OLD | NEW |