Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1110)

Side by Side Diff: chrome/browser/chromeos/settings/install_attributes.h

Issue 2486813002: Add DeviceADPolicyManager to provide AD policy. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_SETTINGS_INSTALL_ATTRIBUTES_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_INSTALL_ATTRIBUTES_H_
6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_INSTALL_ATTRIBUTES_H_ 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_INSTALL_ATTRIBUTES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // called while a previous LockDevice() invocation is still pending. 70 // called while a previous LockDevice() invocation is still pending.
71 void LockDevice(policy::DeviceMode device_mode, 71 void LockDevice(policy::DeviceMode device_mode,
72 const std::string& domain, 72 const std::string& domain,
73 const std::string& realm, 73 const std::string& realm,
74 const std::string& device_id, 74 const std::string& device_id,
75 const LockResultCallback& callback); 75 const LockResultCallback& callback);
76 76
77 // Checks whether this is an enterprise device. 77 // Checks whether this is an enterprise device.
78 bool IsEnterpriseDevice() const; 78 bool IsEnterpriseDevice() const;
79 79
80 // Checks whether this is an AD managed enterprise device.
81 bool IsEnterpriseAD() const;
82
80 // Checks whether this is a consumer kiosk enabled device. 83 // Checks whether this is a consumer kiosk enabled device.
81 bool IsConsumerKioskDeviceWithAutoLaunch(); 84 bool IsConsumerKioskDeviceWithAutoLaunch();
82 85
83 // Return the mode the device was enrolled to. The return value for devices 86 // Return the mode the device was enrolled to. The return value for devices
84 // that are not locked yet is DEVICE_MODE_UNKNOWN. 87 // that are not locked yet is DEVICE_MODE_UNKNOWN.
85 policy::DeviceMode GetMode() const { return registration_mode_; } 88 policy::DeviceMode GetMode() const { return registration_mode_; }
86 89
87 // Return the domain this device belongs to or an empty string if the device 90 // Return the domain this device belongs to or an empty string if the device
88 // is not a cloud-managed enterprise device. 91 // is not a cloud-managed enterprise device.
89 std::string GetDomain() const { return registration_domain_; } 92 std::string GetDomain() const { return registration_domain_; }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 CryptohomeClient* cryptohome_client_; 197 CryptohomeClient* cryptohome_client_;
195 198
196 base::WeakPtrFactory<InstallAttributes> weak_ptr_factory_; 199 base::WeakPtrFactory<InstallAttributes> weak_ptr_factory_;
197 200
198 DISALLOW_COPY_AND_ASSIGN(InstallAttributes); 201 DISALLOW_COPY_AND_ASSIGN(InstallAttributes);
199 }; 202 };
200 203
201 } // namespace chromeos 204 } // namespace chromeos
202 205
203 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_INSTALL_ATTRIBUTES_H_ 206 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_INSTALL_ATTRIBUTES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698