| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // stored in the lockbox, or DEVICE_MODE_CONSUMER if the lockbox has been | 77 // stored in the lockbox, or DEVICE_MODE_CONSUMER if the lockbox has been |
| 78 // locked empty, or DEVICE_MODE_UNKNOWN if the device has not been owned yet. | 78 // locked empty, or DEVICE_MODE_UNKNOWN if the device has not been owned yet. |
| 79 // For other OSes the function will always return DEVICE_MODE_CONSUMER. | 79 // For other OSes the function will always return DEVICE_MODE_CONSUMER. |
| 80 DeviceMode GetDeviceMode(); | 80 DeviceMode GetDeviceMode(); |
| 81 | 81 |
| 82 // Get the enrollment configuration for the device as decided by various | 82 // Get the enrollment configuration for the device as decided by various |
| 83 // factors. See DeviceCloudPolicyInitializer::GetPrescribedEnrollmentConfig() | 83 // factors. See DeviceCloudPolicyInitializer::GetPrescribedEnrollmentConfig() |
| 84 // for details. | 84 // for details. |
| 85 EnrollmentConfig GetPrescribedEnrollmentConfig() const; | 85 EnrollmentConfig GetPrescribedEnrollmentConfig() const; |
| 86 | 86 |
| 87 // Works out the user affiliation by checking the given |user_name| against | |
| 88 // the installation attributes. | |
| 89 UserAffiliation GetUserAffiliation(const std::string& user_name); | |
| 90 | |
| 91 DeviceCloudPolicyManagerChromeOS* GetDeviceCloudPolicyManager() { | 87 DeviceCloudPolicyManagerChromeOS* GetDeviceCloudPolicyManager() { |
| 92 return device_cloud_policy_manager_; | 88 return device_cloud_policy_manager_; |
| 93 } | 89 } |
| 94 | 90 |
| 95 DeviceCloudPolicyInitializer* GetDeviceCloudPolicyInitializer() { | 91 DeviceCloudPolicyInitializer* GetDeviceCloudPolicyInitializer() { |
| 96 return device_cloud_policy_initializer_.get(); | 92 return device_cloud_policy_initializer_.get(); |
| 97 } | 93 } |
| 98 | 94 |
| 99 DeviceLocalAccountPolicyService* GetDeviceLocalAccountPolicyService() { | 95 DeviceLocalAccountPolicyService* GetDeviceLocalAccountPolicyService() { |
| 100 return device_local_account_policy_service_.get(); | 96 return device_local_account_policy_service_.get(); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_; | 182 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_; |
| 187 | 183 |
| 188 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; | 184 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; |
| 189 | 185 |
| 190 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); | 186 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); |
| 191 }; | 187 }; |
| 192 | 188 |
| 193 } // namespace policy | 189 } // namespace policy |
| 194 | 190 |
| 195 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ | 191 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ |
| OLD | NEW |