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

Unified 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: nit Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/forced_reauthentication_dialog.h
diff --git a/chrome/browser/ui/forced_reauthentication_dialog.h b/chrome/browser/ui/forced_reauthentication_dialog.h
new file mode 100644
index 0000000000000000000000000000000000000000..edcb757c9e78c0fb3535406796ec1060c3d413b5
--- /dev/null
+++ b/chrome/browser/ui/forced_reauthentication_dialog.h
@@ -0,0 +1,41 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_FORCED_REAUTHENTICATION_DIALOG_H_
+#define CHROME_BROWSER_UI_FORCED_REAUTHENTICATION_DIALOG_H_
+
+#include <memory>
+
+#include "base/macros.h"
+
+class Profile;
+class SigninManager;
+
+namespace base {
+class TimeDelta;
+} // namespace base
+
+// The virtual class of ForcedReauthenticationDialog.
+class ForcedReauthenticationDialog {
+ public:
+ static std::unique_ptr<ForcedReauthenticationDialog> Create();
+
+ virtual ~ForcedReauthenticationDialog() {}
+ // Show the ForcedReauthenticationDialog for |profile|. If there're no opened
+ // browser windows for |profile|, |signin_manager| will be called to signed
+ // out immediately. Otherwise, dialog will be closed with all browser windows
+ // are assoicated to |profile| after |countdown_duration| if there is no
+ // reauth.
+ virtual void ShowDialog(Profile* profile,
+ SigninManager* signin_manager,
+ base::TimeDelta countdown_duration) = 0;
+
+ protected:
+ ForcedReauthenticationDialog() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ForcedReauthenticationDialog);
+};
+
+#endif // CHROME_BROWSER_UI_FORCED_REAUTHENTICATION_DIALOG_H_
« 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