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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« 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