Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 1 | // Copyright (c) 2013 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "update_engine/constants.h" |
| 6 | |
| 7 | namespace chromeos_update_engine { |
| 8 | |
| 9 | const char kPowerwashMarkerFile[] = |
| 10 | "/mnt/stateful_partition/factory_install_reset"; |
| 11 | |
Chris Sosa | be45bef | 2013-04-09 18:25:12 -0700 | [diff] [blame^] | 12 | const char kSystemRebootedMarkerFile[] = "/tmp/update_engine_update_recorded"; |
| 13 | |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 14 | const char kPowerwashCommand[] = "safe fast\n"; |
Jay Srinivasan | d29695d | 2013-04-08 15:08:05 -0700 | [diff] [blame] | 15 | |
Chris Sosa | be45bef | 2013-04-09 18:25:12 -0700 | [diff] [blame^] | 16 | const char kStatefulPartition[] = "/mnt/stateful_partition"; |
| 17 | |
Jay Srinivasan | d29695d | 2013-04-08 15:08:05 -0700 | [diff] [blame] | 18 | // Constants defining keys for the persisted state of update engine. |
| 19 | const char kPrefsBackoffExpiryTime[] = "backoff-expiry-time"; |
| 20 | const char kPrefsCertificateReportToSendDownload[] = |
| 21 | "certificate-report-to-send-download"; |
| 22 | const char kPrefsCertificateReportToSendUpdate[] = |
| 23 | "certificate-report-to-send-update"; |
Jay Srinivasan | 19409b7 | 2013-04-12 19:23:36 -0700 | [diff] [blame] | 24 | const char kPrefsCurrentBytesDownloaded[] = "current-bytes-downloaded"; |
Jay Srinivasan | d29695d | 2013-04-08 15:08:05 -0700 | [diff] [blame] | 25 | const char kPrefsCurrentResponseSignature[] = "current-response-signature"; |
| 26 | const char kPrefsCurrentUrlFailureCount[] = "current-url-failure-count"; |
| 27 | const char kPrefsCurrentUrlIndex[] = "current-url-index"; |
| 28 | const char kPrefsDeltaUpdateFailures[] = "delta-update-failures"; |
| 29 | const char kPrefsLastActivePingDay[] = "last-active-ping-day"; |
| 30 | const char kPrefsLastRollCallPingDay[] = "last-roll-call-ping-day"; |
| 31 | const char kPrefsManifestMetadataSize[] = "manifest-metadata-size"; |
Chris Sosa | be45bef | 2013-04-09 18:25:12 -0700 | [diff] [blame^] | 32 | const char kPrefsNumReboots[] = "num-reboots"; |
Jay Srinivasan | d29695d | 2013-04-08 15:08:05 -0700 | [diff] [blame] | 33 | const char kPrefsPayloadAttemptNumber[] = "payload-attempt-number"; |
| 34 | const char kPrefsPreviousVersion[] = "previous-version"; |
| 35 | const char kPrefsResumedUpdateFailures[] = "resumed-update-failures"; |
Jay Srinivasan | 19409b7 | 2013-04-12 19:23:36 -0700 | [diff] [blame] | 36 | const char kPrefsTotalBytesDownloaded[] = "total-bytes-downloaded"; |
Jay Srinivasan | d29695d | 2013-04-08 15:08:05 -0700 | [diff] [blame] | 37 | const char kPrefsUpdateCheckCount[] = "update-check-count"; |
| 38 | const char kPrefsUpdateCheckResponseHash[] = "update-check-response-hash"; |
David Zeuthen | cc6f996 | 2013-04-18 11:57:24 -0700 | [diff] [blame] | 39 | const char kPrefsUpdateDurationUptime[] = "update-duration-uptime"; |
Jay Srinivasan | d29695d | 2013-04-08 15:08:05 -0700 | [diff] [blame] | 40 | const char kPrefsUpdateFirstSeenAt[] = "update-first-seen-at"; |
| 41 | const char kPrefsUpdateServerCertificate[] = "update-server-cert"; |
| 42 | const char kPrefsUpdateStateNextDataOffset[] = "update-state-next-data-offset"; |
| 43 | const char kPrefsUpdateStateNextOperation[] = "update-state-next-operation"; |
| 44 | const char kPrefsUpdateStateSHA256Context[] = "update-state-sha-256-context"; |
| 45 | const char kPrefsUpdateStateSignatureBlob[] = "update-state-signature-blob"; |
| 46 | const char kPrefsUpdateStateSignedSHA256Context[] = |
| 47 | "update-state-signed-sha-256-context"; |
David Zeuthen | 9a017f2 | 2013-04-11 16:10:26 -0700 | [diff] [blame] | 48 | const char kPrefsUpdateTimestampStart[] = "update-timestamp-start"; |
David Zeuthen | cc6f996 | 2013-04-18 11:57:24 -0700 | [diff] [blame] | 49 | const char kPrefsUrlSwitchCount[] = "url-switch-count"; |
| 50 | const char kPrefsWallClockWaitPeriod[] = "wall-clock-wait-period"; |
Jay Srinivasan | d29695d | 2013-04-08 15:08:05 -0700 | [diff] [blame] | 51 | |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 52 | } |