| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_USER_MANAGER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_USER_MANAGER_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_USER_MANAGER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_USER_MANAGER_VIEW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/profiles/profile_window.h" | 13 #include "chrome/browser/profiles/profile_window.h" |
| 14 #include "chrome/browser/ui/user_manager.h" | 14 #include "chrome/browser/ui/user_manager.h" |
| 15 #include "components/signin/core/browser/signin_metrics.h" | 15 #include "components/signin/core/browser/signin_metrics.h" |
| 16 #include "ui/views/controls/webview/webview.h" | 16 #include "ui/views/controls/webview/webview.h" |
| 17 #include "ui/views/window/dialog_delegate.h" | 17 #include "ui/views/window/dialog_delegate.h" |
| 18 | 18 |
| 19 class ScopedKeepAlive; | 19 class ScopedKeepAlive; |
| 20 class UserManagerView; | 20 class UserManagerView; |
| 21 | 21 |
| 22 class ReauthDelegate : public views::DialogDelegateView, | 22 class ReauthDelegate : public views::DialogDelegateView, |
| 23 public UserManager::ReauthDialogObserver { | 23 public UserManager::BaseReauthDialogDelegate { |
| 24 public: | 24 public: |
| 25 ReauthDelegate(UserManagerView* parent, | 25 ReauthDelegate(UserManagerView* parent, |
| 26 views::WebView* web_view, | 26 views::WebView* web_view, |
| 27 const std::string& email_address, | 27 const std::string& email_address, |
| 28 signin_metrics::Reason reason); | 28 signin_metrics::Reason reason); |
| 29 ~ReauthDelegate() override; | 29 ~ReauthDelegate() override; |
| 30 | 30 |
| 31 // UserManager::ReauthObserver: | 31 // UserManager::BaseReauthDialogDelegate: |
| 32 void CloseReauthDialog() override; | 32 void CloseReauthDialog() override; |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 ReauthDelegate(); | 35 ReauthDelegate(); |
| 36 | 36 |
| 37 // Before its destruction, tells its parent container to reset its reference | 37 // Before its destruction, tells its parent container to reset its reference |
| 38 // to the ReauthDelegate. | 38 // to the ReauthDelegate. |
| 39 void OnReauthDialogDestroyed(); | 39 void OnReauthDialogDestroyed(); |
| 40 | 40 |
| 41 // views::DialogDelegate: | 41 // views::DialogDelegate: |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 126 |
| 127 ReauthDelegate* delegate_; | 127 ReauthDelegate* delegate_; |
| 128 | 128 |
| 129 std::unique_ptr<ScopedKeepAlive> keep_alive_; | 129 std::unique_ptr<ScopedKeepAlive> keep_alive_; |
| 130 base::Time user_manager_started_showing_; | 130 base::Time user_manager_started_showing_; |
| 131 | 131 |
| 132 DISALLOW_COPY_AND_ASSIGN(UserManagerView); | 132 DISALLOW_COPY_AND_ASSIGN(UserManagerView); |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_USER_MANAGER_VIEW_H_ | 135 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_USER_MANAGER_VIEW_H_ |
| OLD | NEW |