• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #pragma once
8 
9 namespace net {
10 
11 class HostCache;
12 class BoundNetLog;
13 
14 // This data structure holds state related to an invocation of
15 // "FindProxyForURL()". It is used to associate per-request
16 // data that can be retrieved by the bindings.
17 struct ProxyResolverRequestContext {
18   // All of these pointers are expected to remain valid for duration of
19   // this instance's lifetime.
ProxyResolverRequestContextProxyResolverRequestContext20   ProxyResolverRequestContext(const BoundNetLog* net_log,
21                               HostCache* host_cache)
22     : net_log(net_log),
23       host_cache(host_cache) {
24   }
25 
26   const BoundNetLog* net_log;
27   HostCache* host_cache;
28 };
29 
30 }  // namespace net
31 
32 #endif  // NET_PROXY_PROXY_RESOLVER_REQUEST_CONTEXT_H_
33