Home | History | Annotate | Download | only in base

Lines Matching defs:Dictionary

12 // can find a dictionary (based on a server specification of a hash), store a
13 // dictionary, and make judgements about what URLs can use, set, etc. a
14 // dictionary.
17 // (containing metadata) as well as a VCDIFF dictionary (for use by a VCDIFF
36 // A browser may register a fetcher that is used by the dictionary managers to
44 // The Schedule() method is called when there is a need to get a dictionary
77 // Dictionary selection for use problems.
85 // Dictionary saving problems.
95 // Dictionary loading problems.
113 // Dictionary manager issues.
117 META_REFRESH_RECOVERY = 70, // Dictionary not found.
123 PASSING_THROUGH_NON_SDCH = 76, // Tagged sdch but missing dictionary-hash.
136 // (i.e., be able to be sure all dictionary advertisements are accounted
144 PRIOR_TO_DICTIONARY = 95, // We hadn't even parsed a dictionary selector.
154 // a cached dictionary evicition strategy.
158 // There is one instance of |Dictionary| for each memory-cached SDCH
159 // dictionary.
160 class Dictionary : public base::RefCounted<Dictionary> {
166 friend class base::RefCounted<Dictionary>;
170 // Construct a vc-diff usable dictionary from the dictionary_text starting
172 // advertise the dictionary's availability relative to the suppplied URL.
173 Dictionary(const std::string& dictionary_text, size_t offset,
177 ~Dictionary() {}
182 // Security method to check if we can advertise this dictionary for use
186 // Security methods to check if we can establish a new dictionary with the
191 // Security method to check if we can use a dictionary to decompress a
192 // target that arrived with a reference to this dictionary.
195 // Compare paths to see if they "match" for dictionary use.
199 // Compare domains to see if the "match" for dictionary use.
203 // The actual text of the dictionary.
207 // it has a specific dictionary pre-cached.
211 // this dictionary may be used.
214 // Metadate "headers" in before dictionary text contained the following:
215 // Each dictionary payload consists of several headers, followed by the text
216 // of the dictionary. The following are the known headers.
222 DISALLOW_COPY_AND_ASSIGN(Dictionary);
253 // entries are used, but a dictionary is not yet loaded).
279 // Schedule the URL fetching to load a dictionary. This will always return
280 // before the dictionary is actually loaded and added.
281 // After the implied task does completes, the dictionary will have been
290 // Add an SDCH dictionary to our list of availible dictionaries. This addition
291 // will fail (return false) if addition is illegal (data in the dictionary is
292 // not acceptable from the dictionary_url; dictionary already added, etc.).
296 // Find the vcdiff dictionary (the body of the sdch dictionary that appears
299 // be sure the returned |dictionary| can be used for decoding content supplied
301 // Caller is responsible for AddRef()ing the dictionary, and Release()ing it
303 // Return null in |dictionary| if there is no matching legal dictionary.
306 Dictionary** dictionary);
314 // dictionary. This is only made public to facilitate unit testing, but is
332 typedef std::map<std::string, Dictionary*> DictionaryMap;
342 // An instance that can fetch a dictionary given a URL.