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

Unified Diff: chrome/browser/signin/easy_unlock_notification_controller.h

Issue 2968323002: [EasyUnlock] Introduce EasyUnlockNotificationController (Closed)
Patch Set: Notification test. Created 3 years, 5 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/signin/easy_unlock_notification_controller.h
diff --git a/chrome/browser/signin/easy_unlock_notification_controller.h b/chrome/browser/signin/easy_unlock_notification_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..8f43b0689c344590add6ea57d01c89e987b3489d
--- /dev/null
+++ b/chrome/browser/signin/easy_unlock_notification_controller.h
@@ -0,0 +1,40 @@
+// 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_SIGNIN_EASY_UNLOCK_NOTIFICATION_CONTROLLER_H_
+#define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_NOTIFICATION_CONTROLLER_H_
+
+#include <memory>
+
+#include "base/macros.h"
+
+class Profile;
+
+// Responsible for displaying all notifications for EasyUnlock.
+class EasyUnlockNotificationController {
+ public:
+ // Creates an instance of the EasyUnlockNotificationController.
+ static std::unique_ptr<EasyUnlockNotificationController> Create(
+ Profile* profile);
+
+ EasyUnlockNotificationController() {}
+ virtual ~EasyUnlockNotificationController() {}
+
+ // Shows the notification when EasyUnlock is synced to a new Chromebook.
+ virtual void ShowChromebookAddedNotification() = 0;
+
+ // Shows the notification when EasyUnlock is already enabled on a Chromebook,
+ // but a different phone is synced as the unlock key.
+ virtual void ShowPairingChangeNotification() = 0;
+
+ // Shows the notification after password reauth confirming that the new phone
+ // should be used for EasyUnlock from now on.
+ virtual void ShowPairingChangeAppliedNotification(
+ const std::string& phone_name) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(EasyUnlockNotificationController);
+};
+
+#endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_NOTIFICATION_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698