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

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

Issue 118100: Avoid doing concurrent DNS resolves of the same hostname (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Get compiling on mac Created 11 years, 6 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 CompletionCallback* user_callback_; 285 CompletionCallback* user_callback_;
286 286
287 scoped_refptr<HttpNetworkSession> session_; 287 scoped_refptr<HttpNetworkSession> session_;
288 288
289 const HttpRequestInfo* request_; 289 const HttpRequestInfo* request_;
290 HttpResponseInfo response_; 290 HttpResponseInfo response_;
291 291
292 ProxyService::PacRequest* pac_request_; 292 ProxyService::PacRequest* pac_request_;
293 ProxyInfo proxy_info_; 293 ProxyInfo proxy_info_;
294 294
295 HostResolver resolver_;
296 AddressList addresses_;
297
298 ClientSocketFactory* socket_factory_; 295 ClientSocketFactory* socket_factory_;
299 ClientSocketHandle connection_; 296 ClientSocketHandle connection_;
300 scoped_ptr<HttpStream> http_stream_; 297 scoped_ptr<HttpStream> http_stream_;
301 bool reused_socket_; 298 bool reused_socket_;
302 299
303 bool using_ssl_; // True if handling a HTTPS request 300 bool using_ssl_; // True if handling a HTTPS request
304 bool using_proxy_; // True if using a proxy for HTTP (not HTTPS) 301 bool using_proxy_; // True if using a proxy for HTTP (not HTTPS)
305 bool using_tunnel_; // True if using a tunnel for HTTPS 302 bool using_tunnel_; // True if using a tunnel for HTTPS
306 303
307 // True while establishing a tunnel. This allows the HTTP CONNECT 304 // True while establishing a tunnel. This allows the HTTP CONNECT
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 // The time the host resolution started (if it indeed got started). 381 // The time the host resolution started (if it indeed got started).
385 base::Time host_resolution_start_time_; 382 base::Time host_resolution_start_time_;
386 383
387 // The next state in the state machine. 384 // The next state in the state machine.
388 State next_state_; 385 State next_state_;
389 }; 386 };
390 387
391 } // namespace net 388 } // namespace net
392 389
393 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 390 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698