| 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_LIST_DESKTOP_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_LIST_DESKTOP_H_ |
| 6 #define CHROME_BROWSER_PROFILES_PROFILE_LIST_DESKTOP_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_LIST_DESKTOP_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/profiles/profile_list.h" | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/macros.h" |
| 13 #include "chrome/browser/profiles/profile_list.h" |
| 14 |
| 12 class Browser; | 15 class Browser; |
| 13 class ProfileInfoInterface; | 16 class ProfileInfoInterface; |
| 14 | 17 |
| 15 // This model represents the profiles added to desktop Chrome (as opposed to | 18 // This model represents the profiles added to desktop Chrome (as opposed to |
| 16 // Chrome OS). Profiles marked not to appear in the list will be omitted | 19 // Chrome OS). Profiles marked not to appear in the list will be omitted |
| 17 // throughout. | 20 // throughout. |
| 18 class ProfileListDesktop : public ProfileList { | 21 class ProfileListDesktop : public ProfileList { |
| 19 public: | 22 public: |
| 20 explicit ProfileListDesktop(ProfileInfoInterface* profile_cache); | 23 explicit ProfileListDesktop(ProfileInfoInterface* profile_cache); |
| 21 ~ProfileListDesktop() override; | 24 ~ProfileListDesktop() override; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 42 // List of built "menu items." | 45 // List of built "menu items." |
| 43 std::vector<AvatarMenu::Item*> items_; | 46 std::vector<AvatarMenu::Item*> items_; |
| 44 | 47 |
| 45 // The number of profiles that were omitted from the list when it was built. | 48 // The number of profiles that were omitted from the list when it was built. |
| 46 size_t omitted_item_count_; | 49 size_t omitted_item_count_; |
| 47 | 50 |
| 48 DISALLOW_COPY_AND_ASSIGN(ProfileListDesktop); | 51 DISALLOW_COPY_AND_ASSIGN(ProfileListDesktop); |
| 49 }; | 52 }; |
| 50 | 53 |
| 51 #endif // CHROME_BROWSER_PROFILES_PROFILE_LIST_DESKTOP_H_ | 54 #endif // CHROME_BROWSER_PROFILES_PROFILE_LIST_DESKTOP_H_ |
| OLD | NEW |