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_POLICY_DEVICE_LOCAL_ACCOUNT_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_H_ |
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 // An account that serves as a container for a single full-screen app. | 23 // An account that serves as a container for a single full-screen app. |
24 TYPE_KIOSK_APP, | 24 TYPE_KIOSK_APP, |
25 // Sentinel, must be last. | 25 // Sentinel, must be last. |
26 TYPE_COUNT | 26 TYPE_COUNT |
27 }; | 27 }; |
28 | 28 |
29 DeviceLocalAccount(Type type, | 29 DeviceLocalAccount(Type type, |
30 const std::string& account_id, | 30 const std::string& account_id, |
31 const std::string& kiosk_app_id, | 31 const std::string& kiosk_app_id, |
32 const std::string& kiosk_app_update_url); | 32 const std::string& kiosk_app_update_url); |
| 33 DeviceLocalAccount(Type type); |
33 ~DeviceLocalAccount(); | 34 ~DeviceLocalAccount(); |
34 | 35 |
35 Type type; | 36 Type type; |
36 // A device-local account has two identifiers: | 37 // A device-local account has two identifiers: |
37 // * The |account_id| is chosen by the entity that defines the device-local | 38 // * The |account_id| is chosen by the entity that defines the device-local |
38 // account. The only constraints are that the |account_id| be unique and, | 39 // account. The only constraints are that the |account_id| be unique and, |
39 // for legacy reasons, it contain an @ symbol. | 40 // for legacy reasons, it contain an @ symbol. |
40 // * The |user_id| is a synthesized identifier that is guaranteed to be | 41 // * The |user_id| is a synthesized identifier that is guaranteed to be |
41 // unique, contain an @ symbol, not collide with the |user_id| of any other | 42 // unique, contain an @ symbol, not collide with the |user_id| of any other |
42 // user on the device (such as regular users or supervised users) and be | 43 // user on the device (such as regular users or supervised users) and be |
(...skipping 28 matching lines...) Expand all Loading... |
71 chromeos::CrosSettings* cros_settings, | 72 chromeos::CrosSettings* cros_settings, |
72 const std::vector<DeviceLocalAccount>& accounts); | 73 const std::vector<DeviceLocalAccount>& accounts); |
73 | 74 |
74 // Retrieves a list of device-local accounts from |cros_settings|. | 75 // Retrieves a list of device-local accounts from |cros_settings|. |
75 std::vector<DeviceLocalAccount> GetDeviceLocalAccounts( | 76 std::vector<DeviceLocalAccount> GetDeviceLocalAccounts( |
76 chromeos::CrosSettings* cros_settings); | 77 chromeos::CrosSettings* cros_settings); |
77 | 78 |
78 } // namespace policy | 79 } // namespace policy |
79 | 80 |
80 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_H_ | 81 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_H_ |
OLD | NEW |