Home | History | Annotate | Download | only in component_updater

Lines Matching defs:Package

33 UpdateResponse::Result::Manifest::Package::Package() : size(0), sizediff(0) {}
34 UpdateResponse::Result::Manifest::Package::~Package() {}
103 // Parses the <package> tag.
104 bool ParsePackageTag(xmlNode* package,
107 UpdateResponse::Result::Manifest::Package p;
108 p.name = GetAttribute(package, "name");
110 *error = "Missing name for package.";
114 p.namediff = GetAttribute(package, "namediff");
116 // package_fingerprint is optional. It identifies the package, preferably
117 // with a modified sha256 hash of the package in hex format.
118 p.fingerprint = GetAttribute(package, "fp");
120 p.hash_sha256 = GetAttribute(package, "hash_sha256");
122 if (base::StringToInt(GetAttribute(package, "size"), &size)) {
126 p.hashdiff_sha256 = GetAttribute(package, "hashdiff_sha256");
128 if (base::StringToInt(GetAttribute(package, "sizediff"), &sizediff)) {
175 // Parse each of the <package> tags.
176 std::vector<xmlNode*> package = GetChildren(packages[0], "package");
177 for (size_t i = 0; i != package.size(); ++i) {
178 if (!ParsePackageTag(package[i], result, error))