| 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_COCOA_PROFILES_USER_MANAGER_MAC_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_PROFILES_USER_MANAGER_MAC_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_PROFILES_USER_MANAGER_MAC_H_ | 6 #define CHROME_BROWSER_UI_COCOA_PROFILES_USER_MANAGER_MAC_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/mac/scoped_nsobject.h" | 12 #include "base/mac/scoped_nsobject.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/profiles/profile_window.h" | 15 #include "chrome/browser/profiles/profile_window.h" |
| 16 #include "components/signin/core/browser/signin_metrics.h" | 16 #include "components/signin/core/browser/signin_metrics.h" |
| 17 | 17 |
| 18 @class ReauthDialogWindowController; | 18 @class ReauthDialogWindowController; |
| 19 @class UserManagerWindowController; | 19 @class UserManagerWindowController; |
| 20 | 20 |
| 21 namespace content { | |
| 22 class NavigationController; | |
| 23 class WebContents; | |
| 24 } | |
| 25 | |
| 26 // Dialog widget that contains the Desktop User Manager webui. This object | 21 // Dialog widget that contains the Desktop User Manager webui. This object |
| 27 // should always be created from the UserManager::Show() method. Note that only | 22 // should always be created from the UserManager::Show() method. Note that only |
| 28 // one User Manager will exist at a time. | 23 // one User Manager will exist at a time. |
| 29 class UserManagerMac { | 24 class UserManagerMac { |
| 30 public: | 25 public: |
| 31 // Called by the cocoa window controller when its window closes and the | 26 // Called by the cocoa window controller when its window closes and the |
| 32 // controller destroyed itself. Deletes the instance. | 27 // controller destroyed itself. Deletes the instance. |
| 33 void WindowWasClosed(); | 28 void WindowWasClosed(); |
| 34 | 29 |
| 35 // Called from the UserManager class once the |system_profile| is ready. Will | 30 // Called from the UserManager class once the |system_profile| is ready. Will |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 base::scoped_nsobject<ReauthDialogWindowController> reauth_window_; | 64 base::scoped_nsobject<ReauthDialogWindowController> reauth_window_; |
| 70 | 65 |
| 71 base::Time user_manager_started_showing_; | 66 base::Time user_manager_started_showing_; |
| 72 | 67 |
| 73 base::FilePath signin_profile_path_; | 68 base::FilePath signin_profile_path_; |
| 74 | 69 |
| 75 DISALLOW_COPY_AND_ASSIGN(UserManagerMac); | 70 DISALLOW_COPY_AND_ASSIGN(UserManagerMac); |
| 76 }; | 71 }; |
| 77 | 72 |
| 78 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_USER_MANAGER_MAC_H_ | 73 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_USER_MANAGER_MAC_H_ |
| OLD | NEW |