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

Side by Side Diff: chrome/browser/ui/forced_reauthentication_dialog.h

Issue 2944713003: After signin token check failed, show force reauth dialog and start window closing countdown. (Closed)
Patch Set: move CloseDialog to ~Impl 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
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_UI_FORCED_REAUTHENTICATION_DIALOG_H_
6 #define CHROME_BROWSER_UI_FORCED_REAUTHENTICATION_DIALOG_H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11 #include "base/memory/weak_ptr.h"
sky 2017/06/26 22:18:21 This include isn't used.
12
13 class Profile;
14 class SigninManager;
15
16 namespace base {
17 class TimeDelta;
18 } // namespace base
19
20 // The virtual class of ForcedReauthenticationDialog.
21 class ForcedReauthenticationDialog {
22 public:
23 static std::unique_ptr<ForcedReauthenticationDialog> Create();
24
25 virtual ~ForcedReauthenticationDialog() = 0;
sky 2017/06/26 22:18:21 Typically we inline these. That way you don't have
26 // Show the ForcedReauthenticationDialog for |profile|. If there're no opened
27 // browser windows for |profile|, |signin_manager| will be called to signed
28 // out immediately. Otherwise, dialog will be closed with all browser windows
29 // are assoicated to |profile| after |countdown_duration| if there is no
30 // reauth.
31 virtual void ShowDialog(Profile* profile,
32 SigninManager* signin_manager,
33 base::TimeDelta countdown_duration) = 0;
34
35 protected:
36 ForcedReauthenticationDialog();
37
38 private:
39 DISALLOW_COPY_AND_ASSIGN(ForcedReauthenticationDialog);
40 };
41
42 #endif // CHROME_BROWSER_UI_FORCED_REAUTHENTICATION_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/views/profiles/forced_reauthentication_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698