This source file includes following definitions.
- getPublicSuffixLength
#include "content/renderer/webpublicsuffixlist_impl.h"
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
namespace content {
WebPublicSuffixListImpl::~WebPublicSuffixListImpl() {
}
size_t WebPublicSuffixListImpl::getPublicSuffixLength(
const blink::WebString& host) {
size_t result = net::registry_controlled_domains::GetRegistryLength(
host.utf8(),
net::registry_controlled_domains::INCLUDE_UNKNOWN_REGISTRIES,
net::registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES);
return result ? result : host.length();
}
}