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

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

Issue 2968323002: [EasyUnlock] Introduce EasyUnlockNotificationController (Closed)
Patch Set: fix unittests 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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/signin/easy_unlock_notification_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..53ae4be68589b6d3428188beb171a2417be56694
--- /dev/null
+++ b/chrome/browser/signin/easy_unlock_notification_controller.h
@@ -0,0 +1,44 @@
+// 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 <string>
+
+#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;
+
+ // Shows the notification to promote EasyUnlock to the user.
+ virtual void ShowPromotionNotification() = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(EasyUnlockNotificationController);
+};
+
+#endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_NOTIFICATION_CONTROLLER_H_
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/signin/easy_unlock_notification_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698