OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PROFILES_PROFILE_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "chrome/browser/profiles/profile_metrics.h" | 9 #include "chrome/browser/profiles/profile_metrics.h" |
10 #include "chrome/browser/ui/browser_window.h" | 10 #include "chrome/browser/ui/browser_window.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void CreateAndSwitchToNewProfile(chrome::HostDesktopType desktop_type, | 61 void CreateAndSwitchToNewProfile(chrome::HostDesktopType desktop_type, |
62 ProfileSwitchingDoneCallback callback, | 62 ProfileSwitchingDoneCallback callback, |
63 ProfileMetrics::ProfileAdd metric); | 63 ProfileMetrics::ProfileAdd metric); |
64 | 64 |
65 // Closes all browser windows that belong to the guest profile. | 65 // Closes all browser windows that belong to the guest profile. |
66 void CloseGuestProfileWindows(); | 66 void CloseGuestProfileWindows(); |
67 | 67 |
68 // Closes all the browser windows for |profile| and opens the user manager. | 68 // Closes all the browser windows for |profile| and opens the user manager. |
69 void LockProfile(Profile* profile); | 69 void LockProfile(Profile* profile); |
70 | 70 |
| 71 // Returns whether lock is available to this profile. |
| 72 bool IsLockAvailable(Profile* profile); |
| 73 |
71 // Creates or reuses the guest profile needed by the user manager. Based on | 74 // Creates or reuses the guest profile needed by the user manager. Based on |
72 // the value of |tutorial_mode|, the user manager can show a specific | 75 // the value of |tutorial_mode|, the user manager can show a specific |
73 // tutorial, or no tutorial at all. If a tutorial is not shown, then | 76 // tutorial, or no tutorial at all. If a tutorial is not shown, then |
74 // |profile_path_to_focus| could be used to specify which user should be | 77 // |profile_path_to_focus| could be used to specify which user should be |
75 // focused. |callback| is run with the custom url to be displayed, as well as | 78 // focused. |callback| is run with the custom url to be displayed, as well as |
76 // a pointer to the guest profile. | 79 // a pointer to the guest profile. |
77 void CreateGuestProfileForUserManager( | 80 void CreateGuestProfileForUserManager( |
78 const base::FilePath& profile_path_to_focus, | 81 const base::FilePath& profile_path_to_focus, |
79 profiles::UserManagerTutorialMode tutorial_mode, | 82 profiles::UserManagerTutorialMode tutorial_mode, |
80 const base::Callback<void(Profile*, const std::string&)>& callback); | 83 const base::Callback<void(Profile*, const std::string&)>& callback); |
(...skipping 12 matching lines...) Expand all Loading... |
93 // Converts from modes in the avatar menu to modes understood by | 96 // Converts from modes in the avatar menu to modes understood by |
94 // ProfileChooserView. | 97 // ProfileChooserView. |
95 void BubbleViewModeFromAvatarBubbleMode( | 98 void BubbleViewModeFromAvatarBubbleMode( |
96 BrowserWindow::AvatarBubbleMode mode, | 99 BrowserWindow::AvatarBubbleMode mode, |
97 BubbleViewMode* bubble_view_mode, | 100 BubbleViewMode* bubble_view_mode, |
98 TutorialMode* tutorial_mode); | 101 TutorialMode* tutorial_mode); |
99 | 102 |
100 } // namespace profiles | 103 } // namespace profiles |
101 | 104 |
102 #endif // CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_ | 105 #endif // CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_ |
OLD | NEW |