• Home
  • Raw
  • Download

Lines Matching full:dictionary

27 // ISA Dictionary keys
103 // Return true if this is a valid dictionary. Having only keys present in
105 // Error messages will be placed in |error_string|, given that the dictionary
107 // E.g., "container_key" : dictionary
108 bool IsValidDictionary(const base::Value::Dict& dictionary, in IsValidDictionary() argument
116 // Check for unknown dictionary members. in IsValidDictionary()
117 for (const auto [property_name, unused_value] : dictionary) { in IsValidDictionary()
122 // the dictionary. in IsValidDictionary()
130 if (!dictionary.Find(required_keys[i])) { in IsValidDictionary()
142 // Validate a "url" dictionary assuming it was resolved from container_key.
153 << "' is non-dictionary value '" << url_spec << "'."; in IsValidUrlSpec()
210 // Validate a "pnacl-translate" or "pnacl-debug" dictionary, assuming
227 << "' is non-dictionary value '" << pnacl_spec << "'."; in IsValidPnaclTranslateSpec()
245 // Validates that parent_dictionary[parent_key] is a valid ISA dictionary.
246 // An ISA dictionary is validated to have keys from within the set of
257 const base::Value::Dict* dictionary = parent_dictionary.FindDict(parent_key); in IsValidISADictionary() local
258 if (!dictionary) { in IsValidISADictionary()
261 " property is not an ISA to URL dictionary"; in IsValidISADictionary()
264 // Build the set of reserved ISA dictionary keys. in IsValidISADictionary()
285 // Check that entries in the dictionary are structurally correct. in IsValidISADictionary()
286 for (const auto [property_name, property_value] : *dictionary) { in IsValidISADictionary()
293 // For PNaCl arch in "program" dictionary entries can be in IsValidISADictionary()
296 // For PNaCl arch elsewhere, dictionary entries can only be in IsValidISADictionary()
315 // the dictionary, as they may be architectures supported in later in IsValidISADictionary()
329 if (!dictionary->Find(kPortableKey)) { in IsValidISADictionary()
338 bool has_isa = dictionary->Find(sandbox_isa); in IsValidISADictionary()
339 bool has_portable = dictionary->Find(kPortableKey); in IsValidISADictionary()
394 // Ensure it's actually a dictionary before capturing as dictionary_. in Init()
397 error_info->string = "manifest: is not a json dictionary."; in Init()
463 VLOG(1) << "ResolveKey failed: no \"files\" dictionary"; in ResolveKey()
475 // The top level dictionary entries valid in the manifest file. in MatchesSchema()
512 // Validate the file dictionary (if given). in MatchesSchema()
527 "' is not a dictionary."; in MatchesSchema()
534 bool JsonManifest::GetKeyUrl(const base::Value::Dict& dictionary, in GetKeyUrl() argument
539 if (!dictionary.Find(key)) { in GetKeyUrl()
545 if (!GetURLFromISADictionary(dictionary, key, &relative_url, pnacl_options, in GetKeyUrl()
568 const base::Value::Dict* dictionary = parent_dictionary.FindDict(parent_key); in GetURLFromISADictionary() local
569 if (!dictionary) { in GetURLFromISADictionary()
572 parent_key + "'s value is not a json dictionary."; in GetURLFromISADictionary()
588 // sandbox_isa_ or kPortableKey is present in the dictionary. in GetURLFromISADictionary()
593 if (dictionary->Find(sandbox_isa_)) { in GetURLFromISADictionary()
595 } else if (dictionary->Find(kPortableKey)) { in GetURLFromISADictionary()
605 const base::Value::Dict* isa_spec = dictionary->FindDict(chosen_isa); in GetURLFromISADictionary()
609 chosen_isa + "'s value is not a json dictionary."; in GetURLFromISADictionary()
621 "'s value is not a json dictionary."; in GetURLFromISADictionary()
633 "'s value is not a json dictionary."; in GetURLFromISADictionary()