| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef NET_PROXY_SYNC_HOST_RESOLVER_H_ | |
| 6 #define NET_PROXY_SYNC_HOST_RESOLVER_H_ | |
| 7 | |
| 8 #include "net/base/host_resolver.h" | |
| 9 #include "net/base/net_export.h" | |
| 10 | |
| 11 namespace net { | |
| 12 | |
| 13 class BoundNetLog; | |
| 14 | |
| 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() {} | |
| 20 | |
| 21 virtual int Resolve(const HostResolver::RequestInfo& info, | |
| 22 AddressList* addresses, | |
| 23 const BoundNetLog& net_log) = 0; | |
| 24 | |
| 25 // Optionally aborts any blocking resolves that are in progress. | |
| 26 virtual void Shutdown() = 0; | |
| 27 }; | |
| 28 | |
| 29 } // namespace net | |
| 30 | |
| 31 #endif // NET_PROXY_SYNC_HOST_RESOLVER_H_ | |
| OLD | NEW |