Home | History | Annotate | Download | only in base

Lines Matching defs:Dictionary

151   /* The user agent may retrieve a dictionary from the dictionary URL if all of
153 1 The dictionary URL host name matches the referrer URL host name
154 2 The dictionary URL host name domain matches the parent domain of the
158 4 The dictionary URL is not an HTTPS URL.
256 if (!Dictionary::CanSet(domain, path, ports, dictionary_url))
272 UMA_HISTOGRAM_COUNTS("Sdch3.Dictionary size loaded", dictionary_text.size());
273 DLOG(INFO) << "Loaded dictionary with client hash " << client_hash <<
275 Dictionary* dictionary =
276 new Dictionary(dictionary_text, header_end + 2, client_hash,
278 dictionary->AddRef();
279 dictionaries_[server_hash] = dictionary;
284 const GURL& referring_url, Dictionary** dictionary) {
285 *dictionary = NULL;
290 Dictionary* matching_dictionary = it->second;
293 *dictionary = matching_dictionary;
297 // change this interface to return a list of reference counted Dictionary
316 SdchManager::Dictionary::Dictionary(const std::string& dictionary_text,
347 // Since this is only done during a dictionary load, and hashes are only 8
368 bool SdchManager::Dictionary::CanSet(const std::string& domain,
375 A dictionary is invalid and must not be stored if any of the following are
377 1. The dictionary has no Domain attribute.
384 5. If the dictionary has a Port attribute and the referer URL's port was not
388 // TODO(jar): Redirects in dictionary fetches might plausibly be problematic,
390 // were any... then don't allow the dictionary to be set).
401 if (!Dictionary::DomainMatch(dictionary_url, domain)) {
428 bool SdchManager::Dictionary::CanUse(const GURL& referring_url) {
433 dictionary.
434 2. If the dictionary has a Port attribute, the request port is one of the
436 3. The request URL path-matches the path attribute of the dictionary.
467 bool SdchManager::Dictionary::CanAdvertise(const GURL& target_url) {
470 /* The specific rules of when a dictionary should be advertised in an
471 Avail-Dictionary header are modeled after the rules for cookie scoping. The
473 dictionary may be advertised in the Avail-Dictionaries header exactly when
476 the dictionary.
477 2. If the dictionary has a Port attribute, the request port is one of the
479 dictionary.
495 bool SdchManager::Dictionary::PathMatch(const std::string& path,
513 bool SdchManager::Dictionary::DomainMatch(const GURL& gurl,