OLD | NEW |
| (Empty) |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef NET_PROXY_PROXY_RESOLVER_REQUEST_CONTEXT_H_ | |
6 #define NET_PROXY_PROXY_RESOLVER_REQUEST_CONTEXT_H_ | |
7 | |
8 namespace net { | |
9 | |
10 class HostCache; | |
11 class BoundNetLog; | |
12 | |
13 // This data structure holds state related to an invocation of | |
14 // "FindProxyForURL()". It is used to associate per-request | |
15 // data that can be retrieved by the bindings. | |
16 struct ProxyResolverRequestContext { | |
17 // All of these pointers are expected to remain valid for duration of | |
18 // this instance's lifetime. | |
19 ProxyResolverRequestContext(const BoundNetLog* net_log, | |
20 HostCache* host_cache) | |
21 : net_log(net_log), | |
22 host_cache(host_cache) { | |
23 } | |
24 | |
25 const BoundNetLog* net_log; | |
26 HostCache* host_cache; | |
27 }; | |
28 | |
29 } // namespace net | |
30 | |
31 #endif // NET_PROXY_PROXY_RESOLVER_REQUEST_CONTEXT_H_ | |
OLD | NEW |