| 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 <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 void Shutdown() override; | 69 void Shutdown() override; |
| 70 | 70 |
| 71 // Returns true if this device is managed by an enterprise (as opposed to | 71 // Returns true if this device is managed by an enterprise (as opposed to |
| 72 // a local owner). | 72 // a local owner). |
| 73 bool IsEnterpriseManaged() const; | 73 bool IsEnterpriseManaged() const; |
| 74 | 74 |
| 75 // Returns the enterprise domain if device is managed. | 75 // Returns the enterprise domain if device is managed. |
| 76 std::string GetEnterpriseDomain() const; | 76 std::string GetEnterpriseDomain() const; |
| 77 | 77 |
| 78 std::string GetRealm() const; |
| 79 |
| 78 // Returns the device asset ID if it is set. | 80 // Returns the device asset ID if it is set. |
| 79 std::string GetDeviceAssetID() const; | 81 std::string GetDeviceAssetID() const; |
| 80 | 82 |
| 81 // Returns the cloud directory API ID or an empty string if it is not set. | 83 // Returns the cloud directory API ID or an empty string if it is not set. |
| 82 std::string GetDirectoryApiID() const; | 84 std::string GetDirectoryApiID() const; |
| 83 | 85 |
| 84 // Returns the device mode. For Chrome OS this function will return the mode | 86 // Returns the device mode. For Chrome OS this function will return the mode |
| 85 // stored in the lockbox, or DEVICE_MODE_CONSUMER if the lockbox has been | 87 // stored in the lockbox, or DEVICE_MODE_CONSUMER if the lockbox has been |
| 86 // locked empty, or DEVICE_MODE_UNKNOWN if the device has not been owned yet. | 88 // locked empty, or DEVICE_MODE_UNKNOWN if the device has not been owned yet. |
| 87 // For other OSes the function will always return DEVICE_MODE_CONSUMER. | 89 // For other OSes the function will always return DEVICE_MODE_CONSUMER. |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 std::unique_ptr<NetworkConfigurationUpdater> network_configuration_updater_; | 187 std::unique_ptr<NetworkConfigurationUpdater> network_configuration_updater_; |
| 186 | 188 |
| 187 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; | 189 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; |
| 188 | 190 |
| 189 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); | 191 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); |
| 190 }; | 192 }; |
| 191 | 193 |
| 192 } // namespace policy | 194 } // namespace policy |
| 193 | 195 |
| 194 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ | 196 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ |
| OLD | NEW |