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/ui/host_desktop.h" | 9 #include "chrome/browser/ui/host_desktop.h" |
10 #include "chrome/browser/ui/startup/startup_types.h" | 10 #include "chrome/browser/ui/startup/startup_types.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 // Creates a new profile from the next available profile directory, and | 48 // Creates a new profile from the next available profile directory, and |
49 // opens a new browser window for the profile once it is ready. When the browser | 49 // opens a new browser window for the profile once it is ready. When the browser |
50 // is opened, |callback| will be run if it isn't null. | 50 // is opened, |callback| will be run if it isn't null. |
51 void CreateAndSwitchToNewProfile(chrome::HostDesktopType desktop_type, | 51 void CreateAndSwitchToNewProfile(chrome::HostDesktopType desktop_type, |
52 ProfileSwitchingDoneCallback callback); | 52 ProfileSwitchingDoneCallback callback); |
53 | 53 |
54 // Closes all browser windows that belong to the guest profile. | 54 // Closes all browser windows that belong to the guest profile. |
55 void CloseGuestProfileWindows(); | 55 void CloseGuestProfileWindows(); |
56 | 56 |
| 57 // Closes all the browser windows for |profile| and opens the user manager. |
| 58 void LockProfile(Profile* profile); |
| 59 |
57 } // namespace profiles | 60 } // namespace profiles |
58 | 61 |
59 #endif // CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_ | 62 #endif // CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_ |
OLD | NEW |