- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / profiles / profiles_state.h
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.
4
5 #ifndef CHROME_BROWSER_PROFILES_PROFILES_STATE_H_
6 #define CHROME_BROWSER_PROFILES_PROFILES_STATE_H_
7
8 #include "base/strings/string16.h"
9
10 class Browser;
11 class PrefRegistrySimple;
12 namespace base { class FilePath; }
13
14 namespace profiles {
15
16 // Checks if multiple profiles is enabled.
17 bool IsMultipleProfilesEnabled();
18
19 // Checks if new profile management is enabled.
20 bool IsNewProfileManagementEnabled();
21
22 // Returns the path to the default profile directory, based on the given
23 // user data directory.
24 base::FilePath GetDefaultProfileDir(const base::FilePath& user_data_dir);
25
26 // Returns the path to the preferences file given the user profile directory.
27 base::FilePath GetProfilePrefsPath(const base::FilePath& profile_dir);
28
29 // Register multi-profile related preferences in Local State.
30 void RegisterPrefs(PrefRegistrySimple* registry);
31
32 // Returns the display name of the active on-the-record profile (or guest).
33 string16 GetActiveProfileDisplayName(Browser* browser);
34
35 }  // namespace profiles
36
37 #endif  // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_