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