Chromium Code Reviews| Index: chrome/browser/chromeos/policy/active_directory_join_delegate.h |
| diff --git a/chrome/browser/chromeos/policy/active_directory_join_delegate.h b/chrome/browser/chromeos/policy/active_directory_join_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..fc28ef9433832bcae33684a37106a30bb02176ec |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/policy/active_directory_join_delegate.h |
| @@ -0,0 +1,34 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_CHROMEOS_POLICY_ACTIVE_DIRECTORY_JOIN_DELEGATE_H_ |
| +#define CHROME_BROWSER_CHROMEOS_POLICY_ACTIVE_DIRECTORY_JOIN_DELEGATE_H_ |
| + |
| +#include "base/callback.h" |
| + |
| +namespace chromeos { |
| + |
| +// Called on successful Active Directory domain join. Pass Active Directory |
| +// realm. |
| +using OnDomainJoinedCallback = |
| + base::OnceCallback<void(const std::string& realm)>; |
| + |
| +// 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.
|
| +// 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.
|
| +class ActiveDirectoryJoinDelegate { |
| + public: |
| + ActiveDirectoryJoinDelegate() = default; |
| + // Start the Active Directory domain join flow. |
| + void virtual JoinDomain(OnDomainJoinedCallback on_joined_callback) = 0; |
| + |
| + protected: |
| + ~ActiveDirectoryJoinDelegate() = default; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(ActiveDirectoryJoinDelegate); |
| +}; |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_POLICY_ACTIVE_DIRECTORY_JOIN_DELEGATE_H_ |