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

Unified Diff: net/dns/mapped_host_resolver.cc

Issue 2711153007: Add Cronet experimental option to disable ipv6 (Closed)
Patch Set: oops 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
« no previous file with comments | « net/dns/mapped_host_resolver.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
+ 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)) {
« no previous file with comments | « net/dns/mapped_host_resolver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698