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

Unified Diff: net/dns/mapped_host_resolver.cc

Issue 2711153007: Add Cronet experimental option to disable ipv6 (Closed)
Patch Set: Created 3 years, 10 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/mapped_host_resolver.cc
diff --git a/net/dns/mapped_host_resolver.cc b/net/dns/mapped_host_resolver.cc
index e29c85ea75c4b8bb55352eed3663769b17c4bcf8..39c313c74b33d35feeb2131d75e681edd53ebfc9 100644
--- a/net/dns/mapped_host_resolver.cc
+++ b/net/dns/mapped_host_resolver.cc
@@ -56,6 +56,14 @@ std::unique_ptr<base::Value> MappedHostResolver::GetDnsConfigAsValue() const {
return impl_->GetDnsConfigAsValue();
}
+void MappedHostResolver::SetDefaultAddressFamily(AddressFamily address_family) {
xunjieli 2017/02/27 15:37:39 Is this needed? Cronet only use mapped host resolv
mgersh 2017/02/28 18:29:57 It's needed for the unit test to work the way it's
+ impl_->SetDefaultAddressFamily(address_family);
+}
+
+AddressFamily MappedHostResolver::GetDefaultAddressFamily() const {
+ return impl_->GetDefaultAddressFamily();
+}
+
int MappedHostResolver::ApplyRules(RequestInfo* info) const {
HostPortPair host_port(info->host_port_pair());
if (rules_.RewriteHost(&host_port)) {
« components/cronet/url_request_context_config_unittest.cc ('K') | « net/dns/mapped_host_resolver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698