| 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 |
| 18 // domain join flow. This is needed because we have to start the join flow from |
| 19 // inside EnrollmentHandlerChromeOS and enrollment screen is not available |
| 20 // there. |
| 21 class ActiveDirectoryJoinDelegate { |
| 22 public: |
| 23 ActiveDirectoryJoinDelegate() = default; |
| 24 // Start the Active Directory domain join flow. |
| 25 void virtual JoinDomain(OnDomainJoinedCallback on_joined_callback) = 0; |
| 26 |
| 27 protected: |
| 28 ~ActiveDirectoryJoinDelegate() = default; |
| 29 |
| 30 private: |
| 31 DISALLOW_COPY_AND_ASSIGN(ActiveDirectoryJoinDelegate); |
| 32 }; |
| 33 |
| 34 } // namespace chromeos |
| 35 |
| 36 #endif // CHROME_BROWSER_CHROMEOS_POLICY_ACTIVE_DIRECTORY_JOIN_DELEGATE_H_ |
| OLD | NEW |