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

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

Issue 8373014: Add new text for indicating we are resolving hosts during proxy resolution. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Oops Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "base/string16.h" 9 #include "base/string16.h"
10 10
(...skipping 16 matching lines...) Expand all
27 LOAD_STATE_WAITING_FOR_DELEGATE, 27 LOAD_STATE_WAITING_FOR_DELEGATE,
28 28
29 // This state corresponds to a resource load that is blocked waiting for 29 // This state corresponds to a resource load that is blocked waiting for
30 // access to a resource in the cache. If multiple requests are made for the 30 // access to a resource in the cache. If multiple requests are made for the
31 // same resource, the first request will be responsible for writing (or 31 // same resource, the first request will be responsible for writing (or
32 // updating) the cache entry and the second request will be deferred until 32 // updating) the cache entry and the second request will be deferred until
33 // the first completes. This may be done to optimize for cache reuse. 33 // the first completes. This may be done to optimize for cache reuse.
34 LOAD_STATE_WAITING_FOR_CACHE, 34 LOAD_STATE_WAITING_FOR_CACHE,
35 35
36 // 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
37 // proxy autoconfig script to return a proxy server to use. This state may 37 // proxy autoconfig script to return a proxy server to use.
38 // take a while if the proxy script needs to resolve the IP address of the
39 // host before deciding what proxy to use.
40 LOAD_STATE_RESOLVING_PROXY_FOR_URL, 38 LOAD_STATE_RESOLVING_PROXY_FOR_URL,
41 39
40 // This state corresponds to a resource load that is blocked waiting for a
41 // proxy autoconfig script to return a proxy server to use, but that proxy
42 // script is busy resolving the IP address of a host.
43 LOAD_STATE_RESOLVING_HOST_FOR_PROXY_SCRIPT,
44
42 // This state indicates that we're in the process of establishing a tunnel 45 // This state indicates that we're in the process of establishing a tunnel
43 // through the proxy server. 46 // through the proxy server.
44 LOAD_STATE_ESTABLISHING_PROXY_TUNNEL, 47 LOAD_STATE_ESTABLISHING_PROXY_TUNNEL,
45 48
46 // This state corresponds to a resource load that is blocked waiting for a 49 // This state corresponds to a resource load that is blocked waiting for a
47 // host name to be resolved. This could either indicate resolution of the 50 // host name to be resolved. This could either indicate resolution of the
48 // origin server corresponding to the resource or to the host name of a proxy 51 // origin server corresponding to the resource or to the host name of a proxy
49 // server used to fetch the resource. 52 // server used to fetch the resource.
50 LOAD_STATE_RESOLVING_HOST, 53 LOAD_STATE_RESOLVING_HOST,
51 54
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 LoadState state; 88 LoadState state;
86 string16 param; 89 string16 param;
87 LoadStateWithParam() : state(LOAD_STATE_IDLE) {} 90 LoadStateWithParam() : state(LOAD_STATE_IDLE) {}
88 LoadStateWithParam(LoadState state, const string16& param) 91 LoadStateWithParam(LoadState state, const string16& param)
89 : state(state), param(param) {} 92 : state(state), param(param) {}
90 }; 93 };
91 94
92 } // namespace net 95 } // namespace net
93 96
94 #endif // NET_BASE_LOAD_STATES_H__ 97 #endif // NET_BASE_LOAD_STATES_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698