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

Side by Side Diff: net/base/load_states.h

Issue 2101014: Eliminate the establishing_tunnel_ internal state and move to explicit... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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_BASE_LOAD_STATES_H__ 5 #ifndef NET_BASE_LOAD_STATES_H__
6 #define NET_BASE_LOAD_STATES_H__ 6 #define NET_BASE_LOAD_STATES_H__
7 7
8 namespace net { 8 namespace net {
9 9
10 // These states correspond to the lengthy periods of time that a resource load 10 // These states correspond to the lengthy periods of time that a resource load
(...skipping 11 matching lines...) Expand all
22 // updating) the cache entry and the second request will be deferred until 22 // updating) the cache entry and the second request will be deferred until
23 // the first completes. This may be done to optimize for cache reuse. 23 // the first completes. This may be done to optimize for cache reuse.
24 LOAD_STATE_WAITING_FOR_CACHE, 24 LOAD_STATE_WAITING_FOR_CACHE,
25 25
26 // This state corresponds to a resource load that is blocked waiting for a 26 // This state corresponds to a resource load that is blocked waiting for a
27 // proxy autoconfig script to return a proxy server to use. This state may 27 // proxy autoconfig script to return a proxy server to use. This state may
28 // take a while if the proxy script needs to resolve the IP address of the 28 // take a while if the proxy script needs to resolve the IP address of the
29 // host before deciding what proxy to use. 29 // host before deciding what proxy to use.
30 LOAD_STATE_RESOLVING_PROXY_FOR_URL, 30 LOAD_STATE_RESOLVING_PROXY_FOR_URL,
31 31
32 // This state indicates that we're in the process of establishing a tunnel
33 // through the proxy server.
34 LOAD_STATE_ESTABLISHING_PROXY_TUNNEL,
35
32 // This state corresponds to a resource load that is blocked waiting for a 36 // This state corresponds to a resource load that is blocked waiting for a
33 // host name to be resolved. This could either indicate resolution of the 37 // host name to be resolved. This could either indicate resolution of the
34 // origin server corresponding to the resource or to the host name of a proxy 38 // origin server corresponding to the resource or to the host name of a proxy
35 // server used to fetch the resource. 39 // server used to fetch the resource.
36 LOAD_STATE_RESOLVING_HOST, 40 LOAD_STATE_RESOLVING_HOST,
37 41
38 // This state corresponds to a resource load that is blocked waiting for a 42 // This state corresponds to a resource load that is blocked waiting for a
39 // TCP connection (or other network connection) to be established. HTTP 43 // TCP connection (or other network connection) to be established. HTTP
40 // requests that reuse a keep-alive connection skip this state. 44 // requests that reuse a keep-alive connection skip this state.
41 LOAD_STATE_CONNECTING, 45 LOAD_STATE_CONNECTING,
(...skipping 14 matching lines...) Expand all
56 // read to complete. In the case of a HTTP transaction, this corresponds to 60 // read to complete. In the case of a HTTP transaction, this corresponds to
57 // the period after the response headers have been received and before all of 61 // the period after the response headers have been received and before all of
58 // the response body has been downloaded. (NOTE: This state only applies for 62 // the response body has been downloaded. (NOTE: This state only applies for
59 // an URLRequest while there is an outstanding Read operation.) 63 // an URLRequest while there is an outstanding Read operation.)
60 LOAD_STATE_READING_RESPONSE, 64 LOAD_STATE_READING_RESPONSE,
61 }; 65 };
62 66
63 } // namespace net 67 } // namespace net
64 68
65 #endif // NET_BASE_LOAD_STATES_H__ 69 #endif // NET_BASE_LOAD_STATES_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698