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

Side by Side Diff: chrome/browser/signin/easy_unlock_notification_controller.h

Issue 2968323002: [EasyUnlock] Introduce EasyUnlockNotificationController (Closed)
Patch Set: use delegate instead of mc observer 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
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_
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