| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // Returns true if this device is managed by an enterprise (as opposed to | 63 // Returns true if this device is managed by an enterprise (as opposed to |
| 64 // a local owner). | 64 // a local owner). |
| 65 bool IsEnterpriseManaged(); | 65 bool IsEnterpriseManaged(); |
| 66 | 66 |
| 67 // Returns the enterprise domain if device is managed. | 67 // Returns the enterprise domain if device is managed. |
| 68 std::string GetEnterpriseDomain() const; | 68 std::string GetEnterpriseDomain() const; |
| 69 | 69 |
| 70 // Returns the device asset ID if it is set. | 70 // Returns the device asset ID if it is set. |
| 71 std::string GetDeviceAssetID(); | 71 std::string GetDeviceAssetID(); |
| 72 | 72 |
| 73 // Returns the cloud directory API ID or an empty string if it is not set. |
| 74 std::string GetDirectoryApiID(); |
| 75 |
| 73 // Returns the device mode. For ChromeOS this function will return the mode | 76 // Returns the device mode. For ChromeOS this function will return the mode |
| 74 // 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 |
| 75 // 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. |
| 76 // For other OSes the function will always return DEVICE_MODE_CONSUMER. | 79 // For other OSes the function will always return DEVICE_MODE_CONSUMER. |
| 77 DeviceMode GetDeviceMode(); | 80 DeviceMode GetDeviceMode(); |
| 78 | 81 |
| 79 // Get the enrollment configuration for the device as decided by various | 82 // Get the enrollment configuration for the device as decided by various |
| 80 // factors. See DeviceCloudPolicyInitializer::GetPrescribedEnrollmentConfig() | 83 // factors. See DeviceCloudPolicyInitializer::GetPrescribedEnrollmentConfig() |
| 81 // for details. | 84 // for details. |
| 82 EnrollmentConfig GetPrescribedEnrollmentConfig() const; | 85 EnrollmentConfig GetPrescribedEnrollmentConfig() const; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_; | 186 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_; |
| 184 | 187 |
| 185 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; | 188 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; |
| 186 | 189 |
| 187 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); | 190 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); |
| 188 }; | 191 }; |
| 189 | 192 |
| 190 } // namespace policy | 193 } // namespace policy |
| 191 | 194 |
| 192 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ | 195 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ |
| OLD | NEW |