Lines Matching refs:domain
36 const std::string& domain,
43 domain_(domain),
57 terms "domain-match" and "pathmatch" are defined in RFC 2965 [6]. A
60 1. The server's effective host name domain-matches the Domain attribute of
84 bool SdchManager::Dictionary::CanSet(const std::string& domain,
93 1. The dictionary has no Domain attribute.
95 not domain-match the Domain attribute.
96 3. The Domain attribute is a top level domain.
97 4. The referer URL host is a host domain name (not IP address) and has the
98 form HD, where D is the value of the Domain attribute, and H is a string
108 if (domain.empty()) {
110 return false; // Domain is required.
113 domain,
116 return false; // domain was a TLD.
118 if (!Dictionary::DomainMatch(dictionary_url, domain)) {
124 size_t postfix_domain_index = referrer_url_host.rfind(domain);
126 if (referrer_url_host.size() == postfix_domain_index + domain.size()) {
149 1. The request URL's host name domain-matches the Domain attribute of the
204 // TODO(jar): This is not precisely a domain match definition.
260 std::string domain(StringToLowerASCII(url.host()));
261 int count = global_->blacklisted_domains_[domain];
263 return; // Domain is already blacklisted.
265 count = 1 + 2 * global_->exponential_blacklist_count[domain];
267 global_->exponential_blacklist_count[domain] = count;
271 global_->blacklisted_domains_[domain] = count;
280 std::string domain(StringToLowerASCII(url.host()));
281 global_->exponential_blacklist_count[domain] = INT_MAX;
282 global_->blacklisted_domains_[domain] = INT_MAX;
292 void SdchManager::ClearDomainBlacklisting(const std::string& domain) {
293 Global()->blacklisted_domains_.erase(StringToLowerASCII(domain));
297 int SdchManager::BlackListDomainCount(const std::string& domain) {
299 Global()->blacklisted_domains_.find(domain))
301 return Global()->blacklisted_domains_[StringToLowerASCII(domain)];
305 int SdchManager::BlacklistDomainExponential(const std::string& domain) {
307 Global()->exponential_blacklist_count.find(domain))
309 return Global()->exponential_blacklist_count[StringToLowerASCII(domain)];
320 std::string domain(StringToLowerASCII(url.host()));
321 DomainCounter::iterator it = blacklisted_domains_.find(domain);
327 blacklisted_domains_[domain] = count;
329 blacklisted_domains_.erase(domain);
348 2 The dictionary URL host name domain matches the parent domain of the
350 3 The parent domain of the referrer URL host name is not a top level
351 domain
386 std::string domain, path;
423 if (name == "domain") {
424 domain = value;
447 if (!Dictionary::CanSet(domain, path, ports, dictionary_url))
468 dictionary_url, domain, path, expiration, ports);