Kiosk app OEM manifest support in OOBE.
[chromium-blink-merge.git] / chrome / browser / chromeos / app_mode / kiosk_oem_manifest_parser.h
blobe83fe796c763ed1fcab201d86d5a6fc5232cf0d1
1 // Copyright (c) 2013 The Chromium 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.
5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_OEM_MANIFEST_PARSER_H_
6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_OEM_MANIFEST_PARSER_H_
8 #include <string>
10 #include "base/files/file_path.h"
12 namespace chromeos {
14 // Parser for app kiosk OEM manifest files.
15 class KioskOemManifestParser {
16 public:
17 // Kiosk OEM manifest.
18 struct Manifest {
19 Manifest();
21 // True if OOBE flow should enforce enterprise enrollment.
22 bool enterprise_managed;
23 // True user can exit enterprise enrollment during OOBE.
24 bool can_exit_enrollment;
25 // Intended purpose of the device. Meant to be pass-through value for
26 // enterprise enrollment.
27 std::string device_requisition;
30 // Loads manifest from |kiosk_oem_file|. Returns true if manifest was
31 // found and successfully parsed.
32 static bool Load(const base::FilePath& kiosk_oem_file,
33 Manifest* manifest);
35 private:
36 DISALLOW_IMPLICIT_CONSTRUCTORS(KioskOemManifestParser);
39 } // namespace chromeos
41 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_OEM_MANIFEST_PARSER_H_