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