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

Unified Diff: net/tools/quic/synchronous_host_resolver.cc

Issue 2214693002: First step to remove SingleRequestHostResolver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: single Created 4 years, 4 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
« no previous file with comments | « net/socket/websocket_transport_client_socket_pool.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/synchronous_host_resolver.cc
diff --git a/net/tools/quic/synchronous_host_resolver.cc b/net/tools/quic/synchronous_host_resolver.cc
index 7bdf5fd6e256c8b54c8a74812c6a94bab718b395..5010679be66063af40ee17c366cb0719c64d5be9 100644
--- a/net/tools/quic/synchronous_host_resolver.cc
+++ b/net/tools/quic/synchronous_host_resolver.cc
@@ -15,7 +15,6 @@
#include "net/base/host_port_pair.h"
#include "net/base/net_errors.h"
#include "net/dns/host_resolver_impl.h"
-#include "net/dns/single_request_host_resolver.h"
namespace net {
@@ -60,16 +59,16 @@ void ResolverThread::Run() {
net::HostResolver::Options options;
options.max_concurrent_resolves = 6;
options.max_retry_attempts = 3u;
- std::unique_ptr<net::HostResolverImpl> resolver_impl(
+ std::unique_ptr<net::HostResolverImpl> resolver(
new net::HostResolverImpl(options, &net_log));
- SingleRequestHostResolver resolver(resolver_impl.get());
+ std::unique_ptr<net::HostResolver::Request> request;
HostPortPair host_port_pair(host_, 80);
- rv_ = resolver.Resolve(HostResolver::RequestInfo(host_port_pair),
- DEFAULT_PRIORITY, addresses_,
- base::Bind(&ResolverThread::OnResolutionComplete,
- weak_factory_.GetWeakPtr()),
- BoundNetLog());
+ rv_ = resolver->Resolve(HostResolver::RequestInfo(host_port_pair),
+ DEFAULT_PRIORITY, addresses_,
+ base::Bind(&ResolverThread::OnResolutionComplete,
+ weak_factory_.GetWeakPtr()),
+ &request, BoundNetLog());
if (rv_ != ERR_IO_PENDING)
return;
« no previous file with comments | « net/socket/websocket_transport_client_socket_pool.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698