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 |
| 12 class Profile; |
| 13 class SigninManager; |
| 14 |
| 15 namespace base { |
| 16 class TimeDelta; |
| 17 } // namespace base |
| 18 |
| 19 // The virtual class of ForcedReauthenticationDialog. |
| 20 class ForcedReauthenticationDialog { |
| 21 public: |
| 22 static std::unique_ptr<ForcedReauthenticationDialog> Create(); |
| 23 |
| 24 virtual ~ForcedReauthenticationDialog() {} |
| 25 // Show the ForcedReauthenticationDialog for |profile|. If there're no opened |
| 26 // browser windows for |profile|, |signin_manager| will be called to signed |
| 27 // out immediately. Otherwise, dialog will be closed with all browser windows |
| 28 // are assoicated to |profile| after |countdown_duration| if there is no |
| 29 // reauth. |
| 30 virtual void ShowDialog(Profile* profile, |
| 31 SigninManager* signin_manager, |
| 32 base::TimeDelta countdown_duration) = 0; |
| 33 |
| 34 protected: |
| 35 ForcedReauthenticationDialog() {} |
| 36 |
| 37 private: |
| 38 DISALLOW_COPY_AND_ASSIGN(ForcedReauthenticationDialog); |
| 39 }; |
| 40 |
| 41 #endif // CHROME_BROWSER_UI_FORCED_REAUTHENTICATION_DIALOG_H_ |
OLD | NEW |