Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(641)

Side by Side Diff: net/proxy/sync_host_resolver.h

Issue 11885009: Improve performance of proxy resolver by tracing DNS dependencies. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase off trunk Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698