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_CHROMEOS_PROFILES_PROFILE_LIST_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_LIST_CHROMEOS_H_
8 #include "chrome/browser/profiles/profile_list.h"
12 class ProfileInfoInterface
;
16 // This model represents profiles corresponding to logged-in ChromeOS users.
17 class ProfileListChromeOS
: public ProfileList
{
19 explicit ProfileListChromeOS(ProfileInfoInterface
* profile_cache
);
20 ~ProfileListChromeOS() override
;
22 // ProfileList overrides:
23 size_t GetNumberOfItems() const override
;
24 const AvatarMenu::Item
& GetItemAt(size_t index
) const override
;
25 void RebuildMenu() override
;
26 size_t MenuIndexFromProfileIndex(size_t index
) override
;
27 void ActiveProfilePathChanged(base::FilePath
& path
) override
;
33 // The cache that provides the profile information. Weak.
34 ProfileInfoInterface
* profile_info_
;
36 // The path of the currently active profile.
37 base::FilePath active_profile_path_
;
39 // List of built "menu items."
40 std::vector
<AvatarMenu::Item
*> items_
;
42 DISALLOW_COPY_AND_ASSIGN(ProfileListChromeOS
);
45 } // namespace chromeos
47 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_LIST_CHROMEOS_H_