Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: net/http/http_network_transaction.h

Issue 242135: Merge r25564 and r26588 from the trunk.... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Undo an extraneous comment change Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/http/http_auth_unittest.cc ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 // use this boolean to disambiguate a |result| of 0 between a connection 333 // use this boolean to disambiguate a |result| of 0 between a connection
334 // closure (EOF) and reaching the end of the response body (no more data). 334 // closure (EOF) and reaching the end of the response body (no more data).
335 // 335 //
336 // TODO(wtc): this is similar to the |ignore_ok_result_| member of the 336 // TODO(wtc): this is similar to the |ignore_ok_result_| member of the
337 // SSLClientSocketWin class. We may want to add an internal error code, say 337 // SSLClientSocketWin class. We may want to add an internal error code, say
338 // ERR_EOF, to indicate a connection closure, so that 0 simply means 0 bytes 338 // ERR_EOF, to indicate a connection closure, so that 0 simply means 0 bytes
339 // or OK. Note that we already have an ERR_CONNECTION_CLOSED error code, 339 // or OK. Note that we already have an ERR_CONNECTION_CLOSED error code,
340 // but it isn't really being used. 340 // but it isn't really being used.
341 bool reading_body_from_socket_; 341 bool reading_body_from_socket_;
342 342
343 // True if we've used the username/password embedded in the URL. This
344 // makes sure we use the embedded identity only once for the transaction,
345 // preventing an infinite auth restart loop.
346 bool embedded_identity_used_;
347
343 SSLConfig ssl_config_; 348 SSLConfig ssl_config_;
344 349
345 scoped_refptr<RequestHeaders> request_headers_; 350 scoped_refptr<RequestHeaders> request_headers_;
346 size_t request_headers_bytes_sent_; 351 size_t request_headers_bytes_sent_;
347 scoped_ptr<UploadDataStream> request_body_stream_; 352 scoped_ptr<UploadDataStream> request_body_stream_;
348 353
349 // The read buffer |header_buf_| may be larger than it is full. The 354 // The read buffer |header_buf_| may be larger than it is full. The
350 // 'capacity' indicates the allocation size of the buffer, and the 'len' 355 // 'capacity' indicates the allocation size of the buffer, and the 'len'
351 // indicates how much data is in the buffer already. The 'body offset' 356 // indicates how much data is in the buffer already. The 'body offset'
352 // indicates the offset of the start of the response body within the read 357 // indicates the offset of the start of the response body within the read
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 // The time the host resolution started (if it indeed got started). 402 // The time the host resolution started (if it indeed got started).
398 base::Time host_resolution_start_time_; 403 base::Time host_resolution_start_time_;
399 404
400 // The next state in the state machine. 405 // The next state in the state machine.
401 State next_state_; 406 State next_state_;
402 }; 407 };
403 408
404 } // namespace net 409 } // namespace net
405 410
406 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 411 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
OLDNEW
« no previous file with comments | « net/http/http_auth_unittest.cc ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698