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

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

Issue 7544031: Create AvatarMenuModel for the new avatar menu interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/profiles/profile_info_cache.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 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_PROFILE_INFO_INTERFACE_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_
7
8 #include "base/file_path.h"
9 #include "base/string16.h"
10
11 namespace gfx {
12 class Image;
13 }
14
15 // This abstract interface is used to query the profiles backend for information
16 // about the different profiles. Its sole concrete implementation is the
17 // ProfileInfoCache. This interface exists largely to assist in testing.
18 class ProfileInfoInterface {
19 public:
20 virtual size_t GetNumberOfProfiles() const = 0;
21
22 virtual size_t GetIndexOfProfileWithPath(
23 const FilePath& profile_path) const = 0;
24
25 virtual string16 GetNameOfProfileAtIndex(size_t index) const = 0;
26
27 virtual FilePath GetPathOfProfileAtIndex(size_t index) const = 0;
28
29 virtual const gfx::Image& GetAvatarIconOfProfileAtIndex(
30 size_t index) const = 0;
31
32 protected:
33 virtual ~ProfileInfoInterface() {}
34 };
35
36 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_info_cache.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698