Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / ash / multi_user / multi_user_util.h
blob769f15498186bebaca2999bcb5829d57ad6695b3
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_UTIL_H_
6 #define CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_UTIL_H_
8 #include <string>
10 class Profile;
12 namespace aura {
13 class Window;
16 namespace multi_user_util {
18 // Get the user id from a given profile.
19 std::string GetUserIDFromProfile(Profile* profile);
21 // Get the user id from an email address.
22 std::string GetUserIDFromEmail(const std::string& email);
24 // Get a profile for a given user id.
25 Profile* GetProfileFromUserID(const std::string& user_id);
27 // Get a profile for a |window|. Returns NULL if window belongs to no profile.
28 Profile* GetProfileFromWindow(aura::Window* window);
30 // Check if the given profile is from the currently active user. Note that since
31 // only Chrome OS has the concept of an active user, only Chrome OS can ever
32 // return false.
33 bool IsProfileFromActiveUser(Profile* profile);
35 } // namespace multi_user_util
37 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_UTIL_H_