Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: chrome/browser/profiles/profile_list.h

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_LIST_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_LIST_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_LIST_H_
7 7
8 #include <stddef.h>
9
8 #include "chrome/browser/profiles/avatar_menu.h" 10 #include "chrome/browser/profiles/avatar_menu.h"
9 11
10 class ProfileInfoInterface; 12 class ProfileInfoInterface;
11 13
12 // This model represents the profiles added to Chrome. 14 // This model represents the profiles added to Chrome.
13 class ProfileList { 15 class ProfileList {
14 public: 16 public:
15 virtual ~ProfileList() {} 17 virtual ~ProfileList() {}
16 18
17 static ProfileList* Create(ProfileInfoInterface* profile_cache); 19 static ProfileList* Create(ProfileInfoInterface* profile_cache);
18 20
19 // Returns the number of profiles in the model. 21 // Returns the number of profiles in the model.
20 virtual size_t GetNumberOfItems() const = 0; 22 virtual size_t GetNumberOfItems() const = 0;
21 23
22 // Returns the Item at the specified index. 24 // Returns the Item at the specified index.
23 virtual const AvatarMenu::Item& GetItemAt(size_t index) const = 0; 25 virtual const AvatarMenu::Item& GetItemAt(size_t index) const = 0;
24 26
25 // Rebuilds the menu from the data source. 27 // Rebuilds the menu from the data source.
26 virtual void RebuildMenu() = 0; 28 virtual void RebuildMenu() = 0;
27 29
28 // Returns the index in the menu of the specified profile. 30 // Returns the index in the menu of the specified profile.
29 virtual size_t MenuIndexFromProfileIndex(size_t index) = 0; 31 virtual size_t MenuIndexFromProfileIndex(size_t index) = 0;
30 32
31 // Updates the path of the active browser's profile. 33 // Updates the path of the active browser's profile.
32 virtual void ActiveProfilePathChanged(base::FilePath& path) = 0; 34 virtual void ActiveProfilePathChanged(base::FilePath& path) = 0;
33 }; 35 };
34 36
35 #endif // CHROME_BROWSER_PROFILES_PROFILE_LIST_H_ 37 #endif // CHROME_BROWSER_PROFILES_PROFILE_LIST_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | chrome/browser/profiles/profile_list_desktop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698