Enabling tests which should be fixed by r173829.
[chromium-blink-merge.git] / net / proxy / sync_host_resolver.h
blob153dfad2a8c510b8a4a19da4fb254ff537d405cc
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"
11 namespace net {
13 class BoundNetLog;
15 // Interface used by ProxyResolverJSBindings to abstract a synchronous host
16 // resolver module (which includes a Shutdown method).
17 class NET_EXPORT_PRIVATE SyncHostResolver {
18 public:
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;
29 } // namespace net
31 #endif // NET_PROXY_SYNC_HOST_RESOLVER_H_