OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_OEM_MANIFEST_PARSER_H_ | 5 #ifndef CHROMEOS_APP_MODE_KIOSK_OEM_MANIFEST_PARSER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_OEM_MANIFEST_PARSER_H_ | 6 #define CHROMEOS_APP_MODE_KIOSK_OEM_MANIFEST_PARSER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "chromeos/chromeos_export.h" |
11 | 12 |
12 namespace chromeos { | 13 namespace chromeos { |
13 | 14 |
14 // Parser for app kiosk OEM manifest files. | 15 // Parser for app kiosk OEM manifest files. |
15 class KioskOemManifestParser { | 16 class CHROMEOS_EXPORT KioskOemManifestParser { |
16 public: | 17 public: |
17 // Kiosk OEM manifest. | 18 // Kiosk OEM manifest. |
18 struct Manifest { | 19 struct Manifest { |
19 Manifest(); | 20 Manifest(); |
20 | 21 |
21 // True if OOBE flow should enforce enterprise enrollment. | 22 // True if OOBE flow should enforce enterprise enrollment. |
22 bool enterprise_managed; | 23 bool enterprise_managed; |
23 // True user can exit enterprise enrollment during OOBE. | 24 // True user can exit enterprise enrollment during OOBE. |
24 bool can_exit_enrollment; | 25 bool can_exit_enrollment; |
25 // Intended purpose of the device. Meant to be pass-through value for | 26 // Intended purpose of the device. Meant to be pass-through value for |
26 // enterprise enrollment. | 27 // enterprise enrollment. |
27 std::string device_requisition; | 28 std::string device_requisition; |
28 // True if OOBE flow should be adapted for keyboard flow. | 29 // True if OOBE flow should be adapted for keyboard flow. |
29 bool keyboard_driven_oobe; | 30 bool keyboard_driven_oobe; |
30 }; | 31 }; |
31 | 32 |
32 // Loads manifest from |kiosk_oem_file|. Returns true if manifest was | 33 // Loads manifest from |kiosk_oem_file|. Returns true if manifest was |
33 // found and successfully parsed. | 34 // found and successfully parsed. |
34 static bool Load(const base::FilePath& kiosk_oem_file, | 35 static bool Load(const base::FilePath& kiosk_oem_file, |
35 Manifest* manifest); | 36 Manifest* manifest); |
36 | 37 |
37 private: | 38 private: |
38 DISALLOW_IMPLICIT_CONSTRUCTORS(KioskOemManifestParser); | 39 DISALLOW_IMPLICIT_CONSTRUCTORS(KioskOemManifestParser); |
39 }; | 40 }; |
40 | 41 |
41 } // namespace chromeos | 42 } // namespace chromeos |
42 | 43 |
43 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_OEM_MANIFEST_PARSER_H_ | 44 #endif // CHROMEOS_APP_MODE_KIOSK_OEM_MANIFEST_PARSER_H_ |
OLD | NEW |