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 "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.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 | 14 |
| 15 @class ReauthDialogWindowController; |
15 @class UserManagerWindowController; | 16 @class UserManagerWindowController; |
16 | 17 |
17 namespace content { | 18 namespace content { |
18 class NavigationController; | 19 class NavigationController; |
19 class WebContents; | 20 class WebContents; |
20 } | 21 } |
21 | 22 |
22 // Dialog widget that contains the Desktop User Manager webui. This object | 23 // Dialog widget that contains the Desktop User Manager webui. This object |
23 // should always be created from the UserManager::Show() method. Note that only | 24 // should always be created from the UserManager::Show() method. Note that only |
24 // one User Manager will exist at a time. | 25 // one User Manager will exist at a time. |
(...skipping 13 matching lines...) Expand all Loading... |
38 return window_controller_.get(); | 39 return window_controller_.get(); |
39 } | 40 } |
40 | 41 |
41 void set_user_manager_started_showing( | 42 void set_user_manager_started_showing( |
42 const base::Time& user_manager_started_showing) { | 43 const base::Time& user_manager_started_showing) { |
43 user_manager_started_showing_ = user_manager_started_showing; | 44 user_manager_started_showing_ = user_manager_started_showing; |
44 } | 45 } |
45 | 46 |
46 void LogTimeToOpen(); | 47 void LogTimeToOpen(); |
47 | 48 |
| 49 void ShowReauthDialog(content::BrowserContext* browser_context, |
| 50 const std::string& email); |
| 51 void CloseReauthDialog(); |
| 52 |
48 private: | 53 private: |
49 explicit UserManagerMac(Profile* profile); | 54 explicit UserManagerMac(Profile* profile); |
50 virtual ~UserManagerMac(); | 55 virtual ~UserManagerMac(); |
51 | 56 |
52 // Controller of the window. | 57 // Controller of the window. |
53 base::scoped_nsobject<UserManagerWindowController> window_controller_; | 58 base::scoped_nsobject<UserManagerWindowController> window_controller_; |
54 | 59 |
| 60 base::scoped_nsobject<ReauthDialogWindowController> reauth_window_; |
| 61 |
55 base::Time user_manager_started_showing_; | 62 base::Time user_manager_started_showing_; |
56 | 63 |
57 DISALLOW_COPY_AND_ASSIGN(UserManagerMac); | 64 DISALLOW_COPY_AND_ASSIGN(UserManagerMac); |
58 }; | 65 }; |
59 | 66 |
60 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_USER_MANAGER_MAC_H_ | 67 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_USER_MANAGER_MAC_H_ |
OLD | NEW |