Add Wi-FI SSID to captive portal interstitial.
[chromium-blink-merge.git] / net / proxy / proxy_resolver_mac.h
blobef10b5cbf89a943ab00550ae111c6d48b40b002d
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
3 // found in the LICENSE file.
5 #ifndef NET_PROXY_PROXY_RESOLVER_MAC_H_
6 #define NET_PROXY_PROXY_RESOLVER_MAC_H_
8 #include "base/compiler_specific.h"
9 #include "net/base/net_errors.h"
10 #include "net/base/net_export.h"
11 #include "net/proxy/proxy_resolver.h"
12 #include "url/gurl.h"
14 namespace net {
16 // Implementation of ProxyResolver that uses the Mac CFProxySupport to implement
17 // proxies.
18 class NET_EXPORT ProxyResolverMac : public ProxyResolver {
19 public:
20 ProxyResolverMac();
21 ~ProxyResolverMac() override;
23 // ProxyResolver methods:
24 int GetProxyForURL(const GURL& url,
25 ProxyInfo* results,
26 const net::CompletionCallback& callback,
27 RequestHandle* request,
28 const BoundNetLog& net_log) override;
30 void CancelRequest(RequestHandle request) override;
32 LoadState GetLoadState(RequestHandle request) const override;
34 void CancelSetPacScript() override;
36 int SetPacScript(const scoped_refptr<ProxyResolverScriptData>& script_data,
37 const net::CompletionCallback& /*callback*/) override;
39 private:
40 scoped_refptr<ProxyResolverScriptData> script_data_;
43 } // namespace net
45 #endif // NET_PROXY_PROXY_RESOLVER_MAC_H_