Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / profiles / profiles_state.h
blob846d2b282b60b137023dfe238d76b8f734b4ca4e
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_PROFILES_PROFILES_STATE_H_
6 #define CHROME_BROWSER_PROFILES_PROFILES_STATE_H_
8 #include <vector>
9 #include "base/strings/string16.h"
11 class Browser;
12 class PrefRegistrySimple;
13 class Profile;
14 namespace base { class FilePath; }
16 namespace profiles {
18 // Checks if multiple profiles is enabled.
19 bool IsMultipleProfilesEnabled();
21 // Returns the path to the default profile directory, based on the given
22 // user data directory.
23 base::FilePath GetDefaultProfileDir(const base::FilePath& user_data_dir);
25 // Returns the path to the preferences file given the user profile directory.
26 base::FilePath GetProfilePrefsPath(const base::FilePath& profile_dir);
28 // Register multi-profile related preferences in Local State.
29 void RegisterPrefs(PrefRegistrySimple* registry);
31 // Returns the display name of the active on-the-record profile (or guest).
32 base::string16 GetActiveProfileDisplayName(Browser* browser);
34 // Update the name of |profile| to |new_profile_name|. This updates the
35 // profile preferences, which triggers an update in the ProfileInfoCache.
36 void UpdateProfileName(Profile* profile,
37 const base::string16& new_profile_name);
39 // Returns the list of secondary accounts for a specific |profile|, which is
40 // all the email addresses associated with the profile that are not equal to
41 // the |primary_account|.
42 std::vector<std::string> GetSecondaryAccountsForProfile(
43 Profile* profile,
44 const std::string& primary_account);
46 } // namespace profiles
48 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_