Add source and cache selection to HostResolver::CreateRequest.
ResolveHostParameters::allow_cached_response is a direct replacement for RequestInfo::allow_cached_response. Defaulting to true, it controls whether or not a result can come from the host cache. ResolveHostParameters::source allows specifying a source (system vs async resolver) for a request. This is a replacement for setting the HOST_RESOLVER_SYSTEM_ONLY flag or directly using the async resolver classes. Just adding to C++ net/ API for now. Mojo version in next CL. Bug: 846423 Change-Id: Ie945745f595302ae745ffdab355ae1b13a993c4a Reviewed-on: https://chromium-review.googlesource.com/1185216 Commit-Queue: Eric Orth <ericorth@chromium.org> Reviewed-by:Helen Li <xunjieli@chromium.org> Cr-Commit-Position: refs/heads/master@{#585641}
Showing
Please register or sign in to comment