OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_PROXY_SYNC_HOST_RESOLVER_H_ | 5 #ifndef NET_PROXY_SYNC_HOST_RESOLVER_H_ |
6 #define NET_PROXY_SYNC_HOST_RESOLVER_H_ | 6 #define NET_PROXY_SYNC_HOST_RESOLVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "net/base/host_resolver.h" | 9 #include "net/base/host_resolver.h" |
10 #include "net/base/net_api.h" | 10 #include "net/base/net_export.h" |
11 | 11 |
12 namespace net { | 12 namespace net { |
13 | 13 |
14 // Interface used by ProxyResolverJSBindings to abstract a synchronous host | 14 // Interface used by ProxyResolverJSBindings to abstract a synchronous host |
15 // resolver module (which includes a Shutdown method). | 15 // resolver module (which includes a Shutdown method). |
16 class NET_TEST SyncHostResolver { | 16 class NET_EXPORT_PRIVATE SyncHostResolver { |
17 public: | 17 public: |
18 virtual ~SyncHostResolver() {} | 18 virtual ~SyncHostResolver() {} |
19 | 19 |
20 virtual int Resolve(const HostResolver::RequestInfo& info, | 20 virtual int Resolve(const HostResolver::RequestInfo& info, |
21 AddressList* addresses) = 0; | 21 AddressList* addresses) = 0; |
22 | 22 |
23 // Optionally aborts any blocking resolves that are in progress. | 23 // Optionally aborts any blocking resolves that are in progress. |
24 virtual void Shutdown() = 0; | 24 virtual void Shutdown() = 0; |
25 }; | 25 }; |
26 | 26 |
27 } // namespace net | 27 } // namespace net |
28 | 28 |
29 #endif // NET_PROXY_SYNC_HOST_RESOLVER_H_ | 29 #endif // NET_PROXY_SYNC_HOST_RESOLVER_H_ |
OLD | NEW |