blob: 4e3328097a977deac63c3fe2b46a488d4cc8a11e [file] [log] [blame]
// Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef OOBE_CONFIG_ROLLBACK_CONSTANTS_H_
#define OOBE_CONFIG_ROLLBACK_CONSTANTS_H_
#include <base/files/file_util.h>
namespace oobe_config {
// /mnt/stateful_partition/
extern const base::FilePath kStatefulPartition;
// oobe_config_prepare_save copied the files into this directory.
extern const base::FilePath kSaveTempPath;
// oobe_config_finish_restore is expecting the files in this directory.
extern const base::FilePath kRestoreTempPath;
// The rollback data is stored here on unencrypted stateful as an encrypted
// proto. This is the file which is preserved over powerwash.
extern const base::FilePath kUnencryptedStatefulRollbackDataPath;
// The rollback data is stored here on encrypted stateful as an unencrypted
// proto.
extern const base::FilePath kEncryptedStatefulRollbackDataPath;
// These files indicate in which restore state are we currently.
extern const base::FilePath kFirstStageCompletedFile;
extern const base::FilePath kSecondStageCompletedFile;
// Name of the files (without path) we want to preserve.
extern const base::FilePath kInstallAttributesPath;
extern const char kInstallAttributesFileName[];
extern const base::FilePath kOwnerKeyFilePath;
extern const char kOwnerKeyFileName[];
extern const base::FilePath kPolicyFileDirectory;
extern const char kPolicyFileName[];
extern const char kPolicyFileNamePattern[];
extern const base::FilePath kShillDefaultProfilePath;
extern const char kShillDefaultProfileFileName[];
extern const char kPolicyDotOneFileNameForTesting[];
extern const char kOobeConfigSaveUsername[];
extern const char kRootUsername[];
} // namespace oobe_config
#endif // OOBE_CONFIG_ROLLBACK_CONSTANTS_H_