OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ENTERPRISE_INSTALL_ATTRIBUTES_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_ENTERPRISE_INSTALL_ATTRIBUTES_H_ |
6 #define CHROME_BROWSER_CHROMEOS_POLICY_ENTERPRISE_INSTALL_ATTRIBUTES_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_ENTERPRISE_INSTALL_ATTRIBUTES_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 static const char kUnknownDeviceMode[]; | 133 static const char kUnknownDeviceMode[]; |
134 | 134 |
135 // Field names in the lockbox. | 135 // Field names in the lockbox. |
136 static const char kAttrEnterpriseDeviceId[]; | 136 static const char kAttrEnterpriseDeviceId[]; |
137 static const char kAttrEnterpriseDomain[]; | 137 static const char kAttrEnterpriseDomain[]; |
138 static const char kAttrEnterpriseMode[]; | 138 static const char kAttrEnterpriseMode[]; |
139 static const char kAttrEnterpriseOwned[]; | 139 static const char kAttrEnterpriseOwned[]; |
140 static const char kAttrEnterpriseUser[]; | 140 static const char kAttrEnterpriseUser[]; |
141 static const char kAttrConsumerKioskEnabled[]; | 141 static const char kAttrConsumerKioskEnabled[]; |
142 | 142 |
| 143 // Called by |cryptohome_client_| when the cryptohome service becomes |
| 144 // initially available over D-Bus. |
| 145 void OnCryptohomeServiceInitiallyAvailable(bool service_is_ready); |
| 146 |
143 // Translates DeviceMode constants to strings used in the lockbox. | 147 // Translates DeviceMode constants to strings used in the lockbox. |
144 std::string GetDeviceModeString(DeviceMode mode); | 148 std::string GetDeviceModeString(DeviceMode mode); |
145 | 149 |
146 // Translates strings used in the lockbox to DeviceMode values. | 150 // Translates strings used in the lockbox to DeviceMode values. |
147 DeviceMode GetDeviceModeFromString(const std::string& mode); | 151 DeviceMode GetDeviceModeFromString(const std::string& mode); |
148 | 152 |
149 // Decodes the install attributes provided in |attr_map|. | 153 // Decodes the install attributes provided in |attr_map|. |
150 void DecodeInstallAttributes( | 154 void DecodeInstallAttributes( |
151 const std::map<std::string, std::string>& attr_map); | 155 const std::map<std::string, std::string>& attr_map); |
152 | 156 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 chromeos::CryptohomeClient* cryptohome_client_; | 188 chromeos::CryptohomeClient* cryptohome_client_; |
185 | 189 |
186 base::WeakPtrFactory<EnterpriseInstallAttributes> weak_ptr_factory_; | 190 base::WeakPtrFactory<EnterpriseInstallAttributes> weak_ptr_factory_; |
187 | 191 |
188 DISALLOW_COPY_AND_ASSIGN(EnterpriseInstallAttributes); | 192 DISALLOW_COPY_AND_ASSIGN(EnterpriseInstallAttributes); |
189 }; | 193 }; |
190 | 194 |
191 } // namespace policy | 195 } // namespace policy |
192 | 196 |
193 #endif // CHROME_BROWSER_CHROMEOS_POLICY_ENTERPRISE_INSTALL_ATTRIBUTES_H_ | 197 #endif // CHROME_BROWSER_CHROMEOS_POLICY_ENTERPRISE_INSTALL_ATTRIBUTES_H_ |
OLD | NEW |