Home | History | Annotate | Download | only in base

Lines Matching refs:domain

33                                     const std::string& domain,
40 domain_(domain),
54 terms "domain-match" and "pathmatch" are defined in RFC 2965 [6]. A
57 1. The server's effective host name domain-matches the Domain attribute of
81 bool SdchManager::Dictionary::CanSet(const std::string& domain,
90 1. The dictionary has no Domain attribute.
92 not domain-match the Domain attribute.
93 3. The Domain attribute is a top level domain.
94 4. The referer URL host is a host domain name (not IP address) and has the
95 form HD, where D is the value of the Domain attribute, and H is a string
105 if (domain.empty()) {
107 return false; // Domain is required.
109 if (RegistryControlledDomainService::GetDomainAndRegistry(domain).size()
112 return false; // domain was a TLD.
114 if (!Dictionary::DomainMatch(dictionary_url, domain)) {
120 size_t postfix_domain_index = referrer_url_host.rfind(domain);
122 if (referrer_url_host.size() == postfix_domain_index + domain.size()) {
145 1. The request URL's host name domain-matches the Domain attribute of the
200 // TODO(jar): This is not precisely a domain match definition.
237 void SdchManager::EnableSdchSupport(const std::string& domain) {
239 global_->supported_domain_ = domain;
249 std::string domain(StringToLowerASCII(url.host()));
250 int count = global_->blacklisted_domains_[domain];
252 return; // Domain is already blacklisted.
254 count = 1 + 2 * global_->exponential_blacklist_count[domain];
256 global_->exponential_blacklist_count[domain] = count;
260 global_->blacklisted_domains_[domain] = count;
269 std::string domain(StringToLowerASCII(url.host()));
270 global_->exponential_blacklist_count[domain] = INT_MAX;
271 global_->blacklisted_domains_[domain] = INT_MAX;
281 void SdchManager::ClearDomainBlacklisting(const std::string& domain) {
282 Global()->blacklisted_domains_.erase(StringToLowerASCII(domain));
286 int SdchManager::BlackListDomainCount(const std::string& domain) {
288 Global()->blacklisted_domains_.find(domain))
290 return Global()->blacklisted_domains_[StringToLowerASCII(domain)];
294 int SdchManager::BlacklistDomainExponential(const std::string& domain) {
296 Global()->exponential_blacklist_count.find(domain))
298 return Global()->exponential_blacklist_count[StringToLowerASCII(domain)];
306 return false; // It is not the singular supported domain.
311 std::string domain(StringToLowerASCII(url.host()));
312 DomainCounter::iterator it = blacklisted_domains_.find(domain);
318 blacklisted_domains_[domain] = count;
320 blacklisted_domains_.erase(domain);
337 2 The dictionary URL host name domain matches the parent domain of the
339 3 The parent domain of the referrer URL host name is not a top level
340 domain
374 std::string domain, path;
411 if (name == "domain") {
412 domain = value;
435 if (!Dictionary::CanSet(domain, path, ports, dictionary_url))
456 dictionary_url, domain, path, expiration, ports);