| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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/ref_counted.h" | 10 #include "base/ref_counted.h" |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 // use this boolean to disambiguate a |result| of 0 between a connection | 345 // use this boolean to disambiguate a |result| of 0 between a connection |
| 346 // closure (EOF) and reaching the end of the response body (no more data). | 346 // closure (EOF) and reaching the end of the response body (no more data). |
| 347 // | 347 // |
| 348 // TODO(wtc): this is similar to the |ignore_ok_result_| member of the | 348 // TODO(wtc): this is similar to the |ignore_ok_result_| member of the |
| 349 // SSLClientSocketWin class. We may want to add an internal error code, say | 349 // SSLClientSocketWin class. We may want to add an internal error code, say |
| 350 // ERR_EOF, to indicate a connection closure, so that 0 simply means 0 bytes | 350 // ERR_EOF, to indicate a connection closure, so that 0 simply means 0 bytes |
| 351 // or OK. Note that we already have an ERR_CONNECTION_CLOSED error code, | 351 // or OK. Note that we already have an ERR_CONNECTION_CLOSED error code, |
| 352 // but it isn't really being used. | 352 // but it isn't really being used. |
| 353 bool reading_body_from_socket_; | 353 bool reading_body_from_socket_; |
| 354 | 354 |
| 355 // True if we've used the username/password embedded in the URL. This |
| 356 // makes sure we use the embedded identity only once for the transaction, |
| 357 // preventing an infinite auth restart loop. |
| 358 bool embedded_identity_used_; |
| 359 |
| 355 SSLConfig ssl_config_; | 360 SSLConfig ssl_config_; |
| 356 | 361 |
| 357 scoped_refptr<RequestHeaders> request_headers_; | 362 scoped_refptr<RequestHeaders> request_headers_; |
| 358 size_t request_headers_bytes_sent_; | 363 size_t request_headers_bytes_sent_; |
| 359 scoped_ptr<UploadDataStream> request_body_stream_; | 364 scoped_ptr<UploadDataStream> request_body_stream_; |
| 360 | 365 |
| 361 // The read buffer |header_buf_| may be larger than it is full. The | 366 // The read buffer |header_buf_| may be larger than it is full. The |
| 362 // 'capacity' indicates the allocation size of the buffer, and the 'len' | 367 // 'capacity' indicates the allocation size of the buffer, and the 'len' |
| 363 // indicates how much data is in the buffer already. The 'body offset' | 368 // indicates how much data is in the buffer already. The 'body offset' |
| 364 // indicates the offset of the start of the response body within the read | 369 // indicates the offset of the start of the response body within the read |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 // The time the Connect() method was called (if it got called). | 411 // The time the Connect() method was called (if it got called). |
| 407 base::Time connect_start_time_; | 412 base::Time connect_start_time_; |
| 408 | 413 |
| 409 // The next state in the state machine. | 414 // The next state in the state machine. |
| 410 State next_state_; | 415 State next_state_; |
| 411 }; | 416 }; |
| 412 | 417 |
| 413 } // namespace net | 418 } // namespace net |
| 414 | 419 |
| 415 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 420 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
| OLD | NEW |