| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 STATE_GENERATE_SERVER_AUTH_TOKEN, | 91 STATE_GENERATE_SERVER_AUTH_TOKEN, |
| 92 STATE_GENERATE_SERVER_AUTH_TOKEN_COMPLETE, | 92 STATE_GENERATE_SERVER_AUTH_TOKEN_COMPLETE, |
| 93 STATE_SEND_REQUEST, | 93 STATE_SEND_REQUEST, |
| 94 STATE_SEND_REQUEST_COMPLETE, | 94 STATE_SEND_REQUEST_COMPLETE, |
| 95 STATE_READ_HEADERS, | 95 STATE_READ_HEADERS, |
| 96 STATE_READ_HEADERS_COMPLETE, | 96 STATE_READ_HEADERS_COMPLETE, |
| 97 STATE_READ_BODY, | 97 STATE_READ_BODY, |
| 98 STATE_READ_BODY_COMPLETE, | 98 STATE_READ_BODY_COMPLETE, |
| 99 STATE_DRAIN_BODY_FOR_AUTH_RESTART, | 99 STATE_DRAIN_BODY_FOR_AUTH_RESTART, |
| 100 STATE_DRAIN_BODY_FOR_AUTH_RESTART_COMPLETE, | 100 STATE_DRAIN_BODY_FOR_AUTH_RESTART_COMPLETE, |
| 101 STATE_SPDY_GET_STREAM, |
| 102 STATE_SPDY_GET_STREAM_COMPLETE, |
| 101 STATE_SPDY_SEND_REQUEST, | 103 STATE_SPDY_SEND_REQUEST, |
| 102 STATE_SPDY_SEND_REQUEST_COMPLETE, | 104 STATE_SPDY_SEND_REQUEST_COMPLETE, |
| 103 STATE_SPDY_READ_HEADERS, | 105 STATE_SPDY_READ_HEADERS, |
| 104 STATE_SPDY_READ_HEADERS_COMPLETE, | 106 STATE_SPDY_READ_HEADERS_COMPLETE, |
| 105 STATE_SPDY_READ_BODY, | 107 STATE_SPDY_READ_BODY, |
| 106 STATE_SPDY_READ_BODY_COMPLETE, | 108 STATE_SPDY_READ_BODY_COMPLETE, |
| 107 STATE_NONE | 109 STATE_NONE |
| 108 }; | 110 }; |
| 109 | 111 |
| 110 enum AlternateProtocolMode { | 112 enum AlternateProtocolMode { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 134 int DoGenerateServerAuthToken(); | 136 int DoGenerateServerAuthToken(); |
| 135 int DoGenerateServerAuthTokenComplete(int result); | 137 int DoGenerateServerAuthTokenComplete(int result); |
| 136 int DoSendRequest(); | 138 int DoSendRequest(); |
| 137 int DoSendRequestComplete(int result); | 139 int DoSendRequestComplete(int result); |
| 138 int DoReadHeaders(); | 140 int DoReadHeaders(); |
| 139 int DoReadHeadersComplete(int result); | 141 int DoReadHeadersComplete(int result); |
| 140 int DoReadBody(); | 142 int DoReadBody(); |
| 141 int DoReadBodyComplete(int result); | 143 int DoReadBodyComplete(int result); |
| 142 int DoDrainBodyForAuthRestart(); | 144 int DoDrainBodyForAuthRestart(); |
| 143 int DoDrainBodyForAuthRestartComplete(int result); | 145 int DoDrainBodyForAuthRestartComplete(int result); |
| 146 int DoSpdyGetStream(); |
| 147 int DoSpdyGetStreamComplete(int result); |
| 144 int DoSpdySendRequest(); | 148 int DoSpdySendRequest(); |
| 145 int DoSpdySendRequestComplete(int result); | 149 int DoSpdySendRequestComplete(int result); |
| 146 int DoSpdyReadHeaders(); | 150 int DoSpdyReadHeaders(); |
| 147 int DoSpdyReadHeadersComplete(int result); | 151 int DoSpdyReadHeadersComplete(int result); |
| 148 int DoSpdyReadBody(); | 152 int DoSpdyReadBody(); |
| 149 int DoSpdyReadBodyComplete(int result); | 153 int DoSpdyReadBodyComplete(int result); |
| 150 | 154 |
| 151 // Record histograms of latency until Connect() completes. | 155 // Record histograms of latency until Connect() completes. |
| 152 static void LogHttpConnectedMetrics(const ClientSocketHandle& handle); | 156 static void LogHttpConnectedMetrics(const ClientSocketHandle& handle); |
| 153 | 157 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 // True when the tunnel is in the process of being established - we can't | 318 // True when the tunnel is in the process of being established - we can't |
| 315 // read from the socket until the tunnel is done. | 319 // read from the socket until the tunnel is done. |
| 316 bool establishing_tunnel_; | 320 bool establishing_tunnel_; |
| 317 | 321 |
| 318 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); | 322 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); |
| 319 }; | 323 }; |
| 320 | 324 |
| 321 } // namespace net | 325 } // namespace net |
| 322 | 326 |
| 323 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 327 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
| OLD | NEW |