1 // Copyright (c) 2012 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_SYNC_HOST_RESOLVER_H_
6 #define NET_PROXY_SYNC_HOST_RESOLVER_H_
8 #include "net/base/host_resolver.h"
9 #include "net/base/net_export.h"
15 // Interface used by ProxyResolverJSBindings to abstract a synchronous host
16 // resolver module (which includes a Shutdown method).
17 class NET_EXPORT_PRIVATE SyncHostResolver
{
19 virtual ~SyncHostResolver() {}
21 virtual int Resolve(const HostResolver::RequestInfo
& info
,
22 AddressList
* addresses
,
23 const BoundNetLog
& net_log
) = 0;
25 // Optionally aborts any blocking resolves that are in progress.
26 virtual void Shutdown() = 0;
31 #endif // NET_PROXY_SYNC_HOST_RESOLVER_H_