Create new //net/dns/public directory/target
This will hold all the simple host resolution code intended long-term
(post-servicification) for direct non-test access outside the network
stack and service. For now, moving over dns_protocol.h and
dns_util::IsValidDoHTemplate(), two items currently used externally
that do not make sense to servicify. Will likely move over more in
subsequent CLs.
Similar to when //net/dns targets were split off from //net, no attempt
was made to detangle circular dependencies with //net.
Bug: 846454
Change-Id: I7cc209240f1c6f5ae2789c56faefb20662366230
Reviewed-on: https://chromium-review.googlesource.com/c/1320516
Reviewed-by: Bailey Berro <[email protected]>
Reviewed-by: Lei Zhang <[email protected]>
Reviewed-by: Matt Menke <[email protected]>
Commit-Queue: Eric Orth <[email protected]>
Cr-Commit-Position: refs/heads/master@{#606155}
diff --git a/net/dns/host_resolver_impl.cc b/net/dns/host_resolver_impl.cc
index a701c0b..794afdd 100644
--- a/net/dns/host_resolver_impl.cc
+++ b/net/dns/host_resolver_impl.cc
@@ -60,7 +60,6 @@
#include "net/base/url_util.h"
#include "net/dns/address_sorter.h"
#include "net/dns/dns_client.h"
-#include "net/dns/dns_protocol.h"
#include "net/dns/dns_reloader.h"
#include "net/dns/dns_response.h"
#include "net/dns/dns_transaction.h"
@@ -68,6 +67,7 @@
#include "net/dns/host_resolver_mdns_task.h"
#include "net/dns/host_resolver_proc.h"
#include "net/dns/mdns_client.h"
+#include "net/dns/public/dns_protocol.h"
#include "net/log/net_log.h"
#include "net/log/net_log_capture_mode.h"
#include "net/log/net_log_event_type.h"