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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 const ProxyInfo& used_proxy_info, | 78 const ProxyInfo& used_proxy_info, |
79 HttpAuthController* auth_controller) OVERRIDE; | 79 HttpAuthController* auth_controller) OVERRIDE; |
80 virtual void OnNeedsClientAuth(const SSLConfig& used_ssl_config, | 80 virtual void OnNeedsClientAuth(const SSLConfig& used_ssl_config, |
81 SSLCertRequestInfo* cert_info) OVERRIDE; | 81 SSLCertRequestInfo* cert_info) OVERRIDE; |
82 virtual void OnHttpsProxyTunnelResponse(const HttpResponseInfo& response_info, | 82 virtual void OnHttpsProxyTunnelResponse(const HttpResponseInfo& response_info, |
83 const SSLConfig& used_ssl_config, | 83 const SSLConfig& used_ssl_config, |
84 const ProxyInfo& used_proxy_info, | 84 const ProxyInfo& used_proxy_info, |
85 HttpStream* stream) OVERRIDE; | 85 HttpStream* stream) OVERRIDE; |
86 | 86 |
87 private: | 87 private: |
88 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest, ResetStateForRestart); | 88 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionSpdy2Test, |
89 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, WindowUpdateReceived); | 89 ResetStateForRestart); |
90 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, WindowUpdateSent); | 90 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionSpdy21Test, |
91 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, WindowUpdateOverflow); | 91 ResetStateForRestart); |
92 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, FlowControlStallResume); | 92 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionSpdy3Test, |
| 93 ResetStateForRestart); |
| 94 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy2Test, |
| 95 WindowUpdateReceived); |
| 96 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy2Test, |
| 97 WindowUpdateSent); |
| 98 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy2Test, |
| 99 WindowUpdateOverflow); |
| 100 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy2Test, |
| 101 FlowControlStallResume); |
| 102 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy21Test, |
| 103 WindowUpdateReceived); |
| 104 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy21Test, |
| 105 WindowUpdateSent); |
| 106 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy21Test, |
| 107 WindowUpdateOverflow); |
| 108 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy21Test, |
| 109 FlowControlStallResume); |
| 110 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy3Test, |
| 111 WindowUpdateReceived); |
| 112 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy3Test, |
| 113 WindowUpdateSent); |
| 114 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy3Test, |
| 115 WindowUpdateOverflow); |
| 116 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy3Test, |
| 117 FlowControlStallResume); |
93 | 118 |
94 enum State { | 119 enum State { |
95 STATE_CREATE_STREAM, | 120 STATE_CREATE_STREAM, |
96 STATE_CREATE_STREAM_COMPLETE, | 121 STATE_CREATE_STREAM_COMPLETE, |
97 STATE_INIT_STREAM, | 122 STATE_INIT_STREAM, |
98 STATE_INIT_STREAM_COMPLETE, | 123 STATE_INIT_STREAM_COMPLETE, |
99 STATE_GENERATE_PROXY_AUTH_TOKEN, | 124 STATE_GENERATE_PROXY_AUTH_TOKEN, |
100 STATE_GENERATE_PROXY_AUTH_TOKEN_COMPLETE, | 125 STATE_GENERATE_PROXY_AUTH_TOKEN_COMPLETE, |
101 STATE_GENERATE_SERVER_AUTH_TOKEN, | 126 STATE_GENERATE_SERVER_AUTH_TOKEN, |
102 STATE_GENERATE_SERVER_AUTH_TOKEN_COMPLETE, | 127 STATE_GENERATE_SERVER_AUTH_TOKEN_COMPLETE, |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 // True when the tunnel is in the process of being established - we can't | 300 // True when the tunnel is in the process of being established - we can't |
276 // read from the socket until the tunnel is done. | 301 // read from the socket until the tunnel is done. |
277 bool establishing_tunnel_; | 302 bool establishing_tunnel_; |
278 | 303 |
279 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); | 304 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); |
280 }; | 305 }; |
281 | 306 |
282 } // namespace net | 307 } // namespace net |
283 | 308 |
284 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 309 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
OLD | NEW |