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

Unified Diff: net/dns/host_resolver_impl.h

Issue 2116983002: Change HostResolver::Resolve() to take an std::unique_ptr<Request>* rather than a RequestHandle* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: http_stream_factory_impl_job_controller_unittest RequestHandle* to unique_ptr Created 4 years, 5 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/dns/host_resolver_impl.h
diff --git a/net/dns/host_resolver_impl.h b/net/dns/host_resolver_impl.h
index 9ab01ca03ea1a6d3ea4a828249d546537a127f4f..68afccc6bf59f00f5964022ae41d93f8b4099ff8 100644
--- a/net/dns/host_resolver_impl.h
+++ b/net/dns/host_resolver_impl.h
@@ -136,11 +136,8 @@ class NET_EXPORT HostResolverImpl
RequestPriority priority,
AddressList* addresses,
const CompletionCallback& callback,
- RequestHandle* out_req,
+ std::unique_ptr<Request>* out_req,
const BoundNetLog& source_net_log) override;
- void ChangeRequestPriority(RequestHandle req,
- RequestPriority priority) override;
- void CancelRequest(RequestHandle req) override;
int ResolveFromCache(const RequestInfo& info,
AddressList* addresses,
const BoundNetLog& source_net_log) override;
@@ -176,7 +173,7 @@ class NET_EXPORT HostResolverImpl
class ProcTask;
class LoopbackProbeJob;
class DnsTask;
- class Request;
+ class RequestImpl;
typedef HostCache::Key Key;
typedef std::map<Key, Job*> JobMap;

Powered by Google App Engine
This is Rietveld 408576698