#include "net/base/host_mapping_rules.h"
#include <string>
#include "base/logging.h"
#include "base/strings/pattern.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_tokenizer.h"
#include "base/strings/string_util.h"
#include "net/base/host_port_pair.h"
#include "net/base/url_util.h"
#include "url/gurl.h"
#include "url/third_party/mozilla/url_parse.h"
#include "url/url_canon.h"
namespace net {
struct HostMappingRules::MapRule { … };
struct HostMappingRules::ExclusionRule { … };
HostMappingRules::HostMappingRules() = default;
HostMappingRules::HostMappingRules(const HostMappingRules& host_mapping_rules) =
default;
HostMappingRules::~HostMappingRules() = default;
HostMappingRules& HostMappingRules::operator=(
const HostMappingRules& host_mapping_rules) = default;
bool HostMappingRules::RewriteHost(HostPortPair* host_port) const { … }
HostMappingRules::RewriteResult HostMappingRules::RewriteUrl(GURL& url) const { … }
bool HostMappingRules::AddRuleFromString(std::string_view rule_string) { … }
void HostMappingRules::SetRulesFromString(std::string_view rules_string) { … }
}