blob: 6b97aef42d527c708b25c861a0e3108816d3a2cc [file] [log] [blame]
// Copyright 2020 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "update_engine/cros/omaha_parser_data.h"
namespace chromeos_update_engine {
// |daystart| attributes.
const char kAttrElapsedDays[] = "elapsed_days";
const char kAttrElapsedSeconds[] = "elapsed_seconds";
// |app| attributes.
const char kAttrAppId[] = "appid";
const char kAttrCohort[] = "cohort";
const char kAttrCohortHint[] = "cohorthint";
const char kAttrCohortName[] = "cohortname";
// |url| attributes.
const char kAttrCodeBase[] = "codebase";
// |manifest| attributes.
const char kAttrVersion[] = "version";
// |updatecheck| attributes.
// Deprecated: "eol"
const char kAttrEolDate[] = "_eol_date";
const char kAttrExtendedDate[] = "_extended_date";
const char kAttrExtendedOptInRequired[] = "_extended_opt_in_required";
const char kAttrRollback[] = "_rollback";
const char kAttrFirmwareVersion[] = "_firmware_version";
const char kAttrKernelVersion[] = "_kernel_version";
const char kAttrStatus[] = "status";
// Disables sending the device market segment. Only valid for platform app.
const char kAttrDisableMarketSegment[] = "_disable_dms";
const char kAttrInvalidateLastUpdate[] = "_invalidate_last_update";
const char kAttrNoUpdateReason[] = "_no_update_reason";
const char kAttrMigration[] = "_migration";
// |package| attributes.
const char kAttrFp[] = "fp";
const char kAttrHashSha256[] = "hash_sha256";
// Deprecated: "hash"; Although we still need to pass it from the server for
// backward compatibility.
const char kAttrName[] = "name";
const char kAttrSize[] = "size";
// |postinstall| attributes.
const char kAttrDeadline[] = "deadline";
const char kAttrDisableHashChecks[] = "DisableHashChecks";
const char kAttrDisableP2PForDownloading[] = "DisableP2PForDownloading";
const char kAttrDisableP2PForSharing[] = "DisableP2PForSharing";
const char kAttrDisablePayloadBackoff[] = "DisablePayloadBackoff";
const char kAttrDisableRepeatedUpdates[] = "DisableRepeatedUpdates";
const char kAttrEvent[] = "event";
// Deprecated: "IsDelta"
const char kAttrIsDeltaPayload[] = "IsDeltaPayload";
const char kAttrMaxFailureCountPerUrl[] = "MaxFailureCountPerUrl";
const char kAttrMaxDaysToScatter[] = "MaxDaysToScatter";
// Deprecated: "ManifestSignatureRsa"
// Deprecated: "ManifestSize"
const char kAttrMetadataSignatureRsa[] = "MetadataSignatureRsa";
const char kAttrMetadataSize[] = "MetadataSize";
const char kAttrMoreInfo[] = "MoreInfo";
const char kAttrNoUpdate[] = "noupdate";
// Deprecated: "NeedsAdmin"
const char kAttrPollInterval[] = "PollInterval";
const char kAttrPowerwash[] = "Powerwash";
const char kAttrPrompt[] = "Prompt";
const char kAttrPublicKeyRsa[] = "PublicKeyRsa";
// Deprecated: "sha256"; Although we still need to pass it from the server for
// backward compatibility.
// |postinstall| values.
const char kValPostInstall[] = "postinstall";
const char kValNoUpdate[] = "noupdate";
} // namespace chromeos_update_engine