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_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_ | |
OLD | NEW |