Home
last modified time | relevance | path

Searched refs:registry_length (Results 1 – 12 of 12) sorted by relevance

/external/chromium_org/chrome/renderer/safe_browsing/
Dphishing_url_feature_extractor.cc42 size_t registry_length = in ExtractFeatures() local
48 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()
/external/chromium_org/net/base/registry_controlled_domains/
Dregistry_controlled_domain.cc289 const size_t registry_length = in GetDomainAndRegistryImpl() local
291 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()
/external/chromium_org/extensions/common/manifest_handlers/
Dexternally_connectable.cc130 size_t registry_length = rcd::GetRegistryLength( in FromValue() local
139 if (registry_length == std::string::npos) { in FromValue()
149 if (registry_length == 0 && pattern.match_subdomains()) { in FromValue()
/external/chromium_org/extensions/common/permissions/
Dpermission_set.cc287 size_t registry_length = in InitShouldWarnAllHosts() local
294 if (registry_length > 0) in InitShouldWarnAllHosts()
301 registry_length = net::registry_controlled_domains::GetRegistryLength( in InitShouldWarnAllHosts()
307 if (registry_length > 0) { in InitShouldWarnAllHosts()
/external/chromium_org/chrome/browser/autocomplete/
Dautocomplete_input.cc284 const size_t registry_length = in Parse() local
289 if (registry_length == std::string::npos) { in Parse()
341 ((registry_length != 0) && in Parse()
399 ((registry_length != 0) || (host == base::ASCIIToUTF16("localhost") || in Parse()
Dhistory_quick_provider.cc172 const size_t registry_length = in DoAutocomplete() local
177 if (registry_length == 0) { in DoAutocomplete()
Dhistory_url_provider.cc939 const size_t registry_length = in CanFindIntranetURL() local
944 return registry_length == 0 && db->IsTypedHost(host); in CanFindIntranetURL()
/external/chromium_org/chrome/browser/profile_resetter/
Djtl_interpreter.cc305 size_t registry_length = domains::GetRegistryLength( in GetRegisterableDomain() local
313 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()
/external/chromium_org/chrome/browser/supervised_user/
Dsupervised_user_url_filter.cc230 size_t registry_length = GetRegistryLength( in HostMatchesPattern() local
233 if (registry_length == 0) in HostMatchesPattern()
237 trimmed_host.erase(trimmed_host.length() - (registry_length + 1)); in HostMatchesPattern()
/external/chromium_org/net/cert/
Dx509_certificate.cc568 size_t registry_length = in VerifyHostname() local
576 CHECK_NE(std::string::npos, registry_length); in VerifyHostname()
580 registry_length != 0 && in VerifyHostname()
581 registry_length == (reference_domain.size() - 1); in VerifyHostname()
/external/chromium_org/components/url_fixer/
Durl_fixer.cc202 const size_t registry_length = in AddDesiredTLD() local
207 if ((registry_length != 0) && (registry_length != std::string::npos)) in AddDesiredTLD()
/external/chromium_org/chrome/browser/history/
Dhistory_backend.cc412 size_t registry_length = in AddPage() local
417 if (registry_length == 0 && !db_->IsTypedHost(host)) { in AddPage()