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