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_SIGNIN_EASY_UNLOCK_NOTIFICATION_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_NOTIFICATION_CONTROLLER_H_ |
| 7 |
| 8 #include <memory> |
| 9 #include <string> |
| 10 |
| 11 #include "base/macros.h" |
| 12 |
| 13 class Profile; |
| 14 |
| 15 // Responsible for displaying all notifications for EasyUnlock. |
| 16 class EasyUnlockNotificationController { |
| 17 public: |
| 18 // Creates an instance of the EasyUnlockNotificationController. |
| 19 static std::unique_ptr<EasyUnlockNotificationController> Create( |
| 20 Profile* profile); |
| 21 |
| 22 EasyUnlockNotificationController() {} |
| 23 virtual ~EasyUnlockNotificationController() {} |
| 24 |
| 25 // Shows the notification when EasyUnlock is synced to a new Chromebook. |
| 26 virtual void ShowChromebookAddedNotification() = 0; |
| 27 |
| 28 // Shows the notification when EasyUnlock is already enabled on a Chromebook, |
| 29 // but a different phone is synced as the unlock key. |
| 30 virtual void ShowPairingChangeNotification() = 0; |
| 31 |
| 32 // Shows the notification after password reauth confirming that the new phone |
| 33 // should be used for EasyUnlock from now on. |
| 34 virtual void ShowPairingChangeAppliedNotification( |
| 35 const std::string& phone_name) = 0; |
| 36 |
| 37 // Shows the notification to promote EasyUnlock to the user. |
| 38 virtual void ShowPromotionNotification() = 0; |
| 39 |
| 40 private: |
| 41 DISALLOW_COPY_AND_ASSIGN(EasyUnlockNotificationController); |
| 42 }; |
| 43 |
| 44 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_NOTIFICATION_CONTROLLER_H_ |
OLD | NEW |