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 | |
10 #include "base/macros.h" | |
11 | |
12 class Profile; | |
13 | |
14 // Responsible for displaying all notifications for EasyUnlock. | |
15 class EasyUnlockNotificationController { | |
16 public: | |
17 // Creates an instance of the EasyUnlockNotificationController. | |
18 static std::unique_ptr<EasyUnlockNotificationController> Create( | |
19 Profile* profile); | |
20 | |
21 EasyUnlockNotificationController() {} | |
22 virtual ~EasyUnlockNotificationController() {} | |
23 | |
24 // Shows the notification when EasyUnlock is synced to a new Chromebook. | |
25 virtual void ShowChromebookAddedNotification() = 0; | |
26 | |
27 // Shows the notification when EasyUnlock is already enabled on a Chromebook, | |
28 // but a different phone is synced as the unlock key. | |
29 virtual void ShowPairingChangeNotification() = 0; | |
30 | |
31 // Shows the notification after password reauth confirming that the new phone | |
32 // should be used for EasyUnlock from now on. | |
33 virtual void ShowPairingChangeAppliedNotification( | |
34 const std::string& phone_name) = 0; | |
sacomoto
2017/07/12 15:59:04
I'm working on the promotions, and I'll need a pro
Tim Song
2017/07/13 20:46:33
Done.
| |
35 | |
36 private: | |
37 DISALLOW_COPY_AND_ASSIGN(EasyUnlockNotificationController); | |
38 }; | |
39 | |
40 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_NOTIFICATION_CONTROLLER_H_ | |
OLD | NEW |