blob: cdc37e71e68b9330133725b9e02a2d707d451c63 [file] [log] [blame]
[email protected]c4c1b482011-07-22 17:24:261// Copyright (c) 2011 The Chromium Authors. All rights reserved.
[email protected]153d44b2008-10-31 17:15:562// 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_
[email protected]32b76ef2010-07-26 23:08:247#pragma once
[email protected]153d44b2008-10-31 17:15:568
[email protected]c4c1b482011-07-22 17:24:269#include "base/compiler_specific.h"
[email protected]775fd9e2009-07-26 21:12:2010#include "googleurl/src/gurl.h"
[email protected]172da1b2011-08-12 15:52:2611#include "net/base/net_export.h"
[email protected]620f5712009-08-04 22:43:1212#include "net/base/net_errors.h"
[email protected]7dc52f22009-03-02 22:37:1813#include "net/proxy/proxy_resolver.h"
[email protected]153d44b2008-10-31 17:15:5614
15namespace net {
16
17// Implementation of ProxyResolver that uses the Mac CFProxySupport to implement
18// proxies.
[email protected]172da1b2011-08-12 15:52:2619class NET_EXPORT ProxyResolverMac : public ProxyResolver {
[email protected]153d44b2008-10-31 17:15:5620 public:
[email protected]1e605472010-12-16 21:41:4021 ProxyResolverMac();
22 virtual ~ProxyResolverMac();
[email protected]45bdf862009-02-23 19:04:4023
[email protected]153d44b2008-10-31 17:15:5624 // ProxyResolver methods:
[email protected]775fd9e2009-07-26 21:12:2025 virtual int GetProxyForURL(const GURL& url,
26 ProxyInfo* results,
27 CompletionCallback* callback,
[email protected]52ae80c2009-09-10 21:27:0028 RequestHandle* request,
[email protected]c4c1b482011-07-22 17:24:2629 const BoundNetLog& net_log) OVERRIDE;
[email protected]775fd9e2009-07-26 21:12:2030
[email protected]c4c1b482011-07-22 17:24:2631 virtual void CancelRequest(RequestHandle request) OVERRIDE;
[email protected]1e605472010-12-16 21:41:4032
[email protected]c4c1b482011-07-22 17:24:2633 virtual void CancelSetPacScript() OVERRIDE;
[email protected]775fd9e2009-07-26 21:12:2034
[email protected]24476402010-07-20 20:55:1735 virtual int SetPacScript(
36 const scoped_refptr<ProxyResolverScriptData>& script_data,
[email protected]c4c1b482011-07-22 17:24:2637 CompletionCallback* /*callback*/) OVERRIDE;
[email protected]775fd9e2009-07-26 21:12:2038
[email protected]24476402010-07-20 20:55:1739 private:
40 scoped_refptr<ProxyResolverScriptData> script_data_;
[email protected]153d44b2008-10-31 17:15:5641};
42
[email protected]153d44b2008-10-31 17:15:5643} // namespace net
44
45#endif // NET_PROXY_PROXY_RESOLVER_MAC_H_