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

Unified Diff: net/proxy/sync_host_resolver_bridge.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: whitespace changes 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 side-by-side diff with in-line comments
Download patch
Index: net/proxy/sync_host_resolver_bridge.h
diff --git a/net/proxy/sync_host_resolver_bridge.h b/net/proxy/sync_host_resolver_bridge.h
deleted file mode 100644
index 1de67b59f22692b43895da32ffde1248e31e1ff6..0000000000000000000000000000000000000000
--- a/net/proxy/sync_host_resolver_bridge.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_PROXY_SYNC_HOST_RESOLVER_BRIDGE_H_
-#define NET_PROXY_SYNC_HOST_RESOLVER_BRIDGE_H_
-
-#include "base/compiler_specific.h"
-#include "base/memory/ref_counted.h"
-#include "net/proxy/sync_host_resolver.h"
-
-class MessageLoop;
-
-namespace net {
-
-// Wrapper around HostResolver to give a sync API while running the resolver
-// in async mode on |host_resolver_loop|.
-class NET_EXPORT_PRIVATE SyncHostResolverBridge : public SyncHostResolver {
- public:
- SyncHostResolverBridge(HostResolver* host_resolver,
- MessageLoop* host_resolver_loop);
-
- virtual ~SyncHostResolverBridge();
-
- // SyncHostResolver methods:
- virtual int Resolve(const HostResolver::RequestInfo& info,
- AddressList* addresses,
- const BoundNetLog& net_log) OVERRIDE;
-
- // The Shutdown() method should be called prior to destruction, from
- // |host_resolver_loop_|. It aborts any in progress synchronous resolves, to
- // prevent deadlocks from happening.
- virtual void Shutdown() OVERRIDE;
-
- private:
- class Core;
-
- MessageLoop* const host_resolver_loop_;
- scoped_refptr<Core> core_;
- DISALLOW_COPY_AND_ASSIGN(SyncHostResolverBridge);
-};
-
-} // namespace net
-
-#endif // NET_PROXY_SYNC_HOST_RESOLVER_BRIDGE_H_

Powered by Google App Engine
This is Rietveld 408576698