Searched refs:registry_length (Results 1 – 12 of 12) sorted by relevance
42 size_t registry_length = in ExtractFeatures() local48 if (registry_length == 0 || registry_length == std::string::npos) { in ExtractFeatures()52 DCHECK_LT(registry_length, host.size()) << "Non-zero registry length, but " in ExtractFeatures()54 size_t tld_start = host.size() - registry_length; in ExtractFeatures()
289 const size_t registry_length = in GetDomainAndRegistryImpl() local291 if ((registry_length == std::string::npos) || (registry_length == 0)) in GetDomainAndRegistryImpl()296 if (registry_length > (host.length() - 2)) { in GetDomainAndRegistryImpl()305 const size_t dot = host.rfind('.', host.length() - registry_length - 2); in GetDomainAndRegistryImpl()
130 size_t registry_length = rcd::GetRegistryLength( in FromValue() local139 if (registry_length == std::string::npos) { in FromValue()149 if (registry_length == 0 && pattern.match_subdomains()) { in FromValue()
287 size_t registry_length = in InitShouldWarnAllHosts() local294 if (registry_length > 0) in InitShouldWarnAllHosts()301 registry_length = net::registry_controlled_domains::GetRegistryLength( in InitShouldWarnAllHosts()307 if (registry_length > 0) { in InitShouldWarnAllHosts()
284 const size_t registry_length = in Parse() local289 if (registry_length == std::string::npos) { in Parse()341 ((registry_length != 0) && in Parse()399 ((registry_length != 0) || (host == base::ASCIIToUTF16("localhost") || in Parse()
172 const size_t registry_length = in DoAutocomplete() local177 if (registry_length == 0) { in DoAutocomplete()
939 const size_t registry_length = in CanFindIntranetURL() local944 return registry_length == 0 && db->IsTypedHost(host); in CanFindIntranetURL()
305 size_t registry_length = domains::GetRegistryLength( in GetRegisterableDomain() local313 if (registry_length == std::string::npos || registry_length == 0) in GetRegisterableDomain()315 DCHECK_LT(registry_length, registry_plus_one.size()); in GetRegisterableDomain()318 registry_plus_one, 0, registry_plus_one.size() - registry_length - 1); in GetRegisterableDomain()
230 size_t registry_length = GetRegistryLength( in HostMatchesPattern() local233 if (registry_length == 0) in HostMatchesPattern()237 trimmed_host.erase(trimmed_host.length() - (registry_length + 1)); in HostMatchesPattern()
568 size_t registry_length = in VerifyHostname() local576 CHECK_NE(std::string::npos, registry_length); in VerifyHostname()580 registry_length != 0 && in VerifyHostname()581 registry_length == (reference_domain.size() - 1); in VerifyHostname()
202 const size_t registry_length = in AddDesiredTLD() local207 if ((registry_length != 0) && (registry_length != std::string::npos)) in AddDesiredTLD()
412 size_t registry_length = in AddPage() local417 if (registry_length == 0 && !db_->IsTypedHost(host)) { in AddPage()