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

Unified Diff: chrome/browser/chromeos/policy/active_directory_join_delegate.h

Issue 2677563005: Chromad: Use DM server reply to determine enrollment type (Closed)
Patch Set: comments+create ActiveDirectoryJoinDelegate Created 3 years, 10 months 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 side-by-side diff with in-line comments
Download patch
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..0c75b6d8ba4c6d83168cff675dccc315147ca066
--- /dev/null
+++ b/chrome/browser/chromeos/policy/active_directory_join_delegate.h
@@ -0,0 +1,25 @@
+// 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)>;
+
+class ActiveDirectoryJoinDelegate {
+ public:
+ // Shows the Active Directory domain joining screen.
+ void virtual JoinDomain(OnDomainJoinedCallback on_joined_callback) = 0;
achuithb 2017/02/13 13:39:03 DISALLOW_COPY_AND_ASSIGN
Roman Sorokin (ftl) 2017/02/14 12:47:10 Done.
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_POLICY_ACTIVE_DIRECTORY_JOIN_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698