Home | History | Annotate | Download | only in base

Lines Matching defs:Dictionary

39 SdchManager::Dictionary::Dictionary(const std::string& dictionary_text,
56 SdchManager::Dictionary::~Dictionary() {
59 bool SdchManager::Dictionary::CanAdvertise(const GURL& target_url) {
60 /* The specific rules of when a dictionary should be advertised in an
61 Avail-Dictionary header are modeled after the rules for cookie scoping. The
63 dictionary may be advertised in the Avail-Dictionaries header exactly when
66 the dictionary.
67 2. If the dictionary has a Port attribute, the request port is one of the
69 3. The request URI path-matches the path header of the dictionary.
72 HTTPS support AND dictionary has been acquired over HTTPS.
93 bool SdchManager::Dictionary::CanSet(const std::string& domain,
98 A dictionary is invalid and must not be stored if any of the following are
100 1. The dictionary has no Domain attribute.
107 5. If the dictionary has a Port attribute and the referer URL's port was not
111 // TODO(jar): Redirects in dictionary fetches might plausibly be problematic,
113 // were any... then don't allow the dictionary to be set).
125 if (!Dictionary::DomainMatch(dictionary_url, domain)) {
152 bool SdchManager::Dictionary::CanUse(const GURL& referring_url) {
155 dictionary.
156 2. If the dictionary has a Port attribute, the request port is one of the
158 3. The request URL path-matches the path attribute of the dictionary.
161 HTTPS support AND dictionary has been acquired over HTTPS.
196 bool SdchManager::Dictionary::PathMatch(const std::string& path,
214 bool SdchManager::Dictionary::DomainMatch(const GURL& gurl,
349 /* The user agent may retrieve a dictionary from the dictionary URL if all of
351 1 The dictionary URL host name matches the referrer URL host name and
353 2 The dictionary URL host name domain matches the parent domain of the
357 4 The dictionary URL is not an HTTPS URL.
456 if (!Dictionary::CanSet(domain, path, ports, dictionary_url))
472 UMA_HISTOGRAM_COUNTS("Sdch3.Dictionary size loaded", dictionary_text.size());
473 DVLOG(1) << "Loaded dictionary with client hash " << client_hash
475 Dictionary* dictionary =
476 new Dictionary(dictionary_text, header_end + 2, client_hash,
478 dictionaries_[server_hash] = dictionary;
485 scoped_refptr<Dictionary>* dictionary) {
487 *dictionary = NULL;
492 scoped_refptr<Dictionary> matching_dictionary = it->second;
497 *dictionary = matching_dictionary;
501 // change this interface to return a list of reference counted Dictionary
563 // Since this is only done during a dictionary load, and hashes are only 8