Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_ACTIVE_DIRECTORY_JOIN_DELEGATE_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_POLICY_ACTIVE_DIRECTORY_JOIN_DELEGATE_H_ | |
| 7 | |
| 8 #include "base/callback.h" | |
| 9 | |
| 10 namespace chromeos { | |
| 11 | |
| 12 // Called on successful Active Directory domain join. Pass Active Directory | |
| 13 // realm. | |
| 14 using OnDomainJoinedCallback = | |
| 15 base::OnceCallback<void(const std::string& realm)>; | |
| 16 | |
| 17 // Delegate being used during Enterprise Enrollment to start Active Directory | |
|
Thiemo Nagel
2017/02/14 16:43:06
Nit: enterprise enrollment
Roman Sorokin (ftl)
2017/02/15 14:01:44
Done.
| |
| 18 // domain join flow. | |
|
Thiemo Nagel
2017/02/14 16:43:06
Nit: For cavemen like me, maybe explain the motiva
Roman Sorokin (ftl)
2017/02/15 14:01:44
Done.
| |
| 19 class ActiveDirectoryJoinDelegate { | |
| 20 public: | |
| 21 ActiveDirectoryJoinDelegate() = default; | |
| 22 // Start the Active Directory domain join flow. | |
| 23 void virtual JoinDomain(OnDomainJoinedCallback on_joined_callback) = 0; | |
| 24 | |
| 25 protected: | |
| 26 ~ActiveDirectoryJoinDelegate() = default; | |
| 27 | |
| 28 private: | |
| 29 DISALLOW_COPY_AND_ASSIGN(ActiveDirectoryJoinDelegate); | |
| 30 }; | |
| 31 | |
| 32 } // namespace chromeos | |
| 33 | |
| 34 #endif // CHROME_BROWSER_CHROMEOS_POLICY_ACTIVE_DIRECTORY_JOIN_DELEGATE_H_ | |
| OLD | NEW |