blob: 8413624ebe07be926969cf071d0b6ffda8183290 [file] [log] [blame]
[email protected]153d44b2008-10-31 17:15:561// Copyright (c) 2008 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_MAC_H_
6#define NET_PROXY_PROXY_RESOLVER_MAC_H_
7
[email protected]7dc52f22009-03-02 22:37:188#include "net/proxy/proxy_config_service.h"
9#include "net/proxy/proxy_resolver.h"
[email protected]153d44b2008-10-31 17:15:5610
11namespace net {
12
13// Implementation of ProxyResolver that uses the Mac CFProxySupport to implement
14// proxies.
15class ProxyResolverMac : public ProxyResolver {
16 public:
[email protected]45bdf862009-02-23 19:04:4017 ProxyResolverMac() : ProxyResolver(true) {}
18
[email protected]153d44b2008-10-31 17:15:5619 // ProxyResolver methods:
[email protected]96fbab42008-12-02 06:57:4420 virtual int GetProxyForURL(const GURL& query_url,
21 const GURL& pac_url,
[email protected]153d44b2008-10-31 17:15:5622 ProxyInfo* results);
23};
24
[email protected]51fff29d2008-12-19 22:17:5325class ProxyConfigServiceMac : public ProxyConfigService {
26 public:
27 // ProxyConfigService methods:
28 virtual int GetProxyConfig(ProxyConfig* config);
29};
30
[email protected]153d44b2008-10-31 17:15:5631} // namespace net
32
33#endif // NET_PROXY_PROXY_RESOLVER_MAC_H_