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

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

Issue 193022: Use SSPI for NTLM authentication on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Upload before checkin Created 11 years, 3 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_handler_ntlm.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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « net/http/http_auth_handler_ntlm.cc ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698