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

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

Issue 8511064: GAIA Profile info prototype (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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_INFO_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_
7 7
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "third_party/skia/include/core/SkBitmap.h"
10 11
11 namespace gfx { 12 namespace gfx {
12 class Image; 13 class Image;
13 } 14 }
14 15
15 // This abstract interface is used to query the profiles backend for information 16 // This abstract interface is used to query the profiles backend for information
16 // about the different profiles. Its sole concrete implementation is the 17 // about the different profiles. Its sole concrete implementation is the
17 // ProfileInfoCache. This interface exists largely to assist in testing. 18 // ProfileInfoCache. This interface exists largely to assist in testing.
18 class ProfileInfoInterface { 19 class ProfileInfoInterface {
19 public: 20 public:
20 virtual size_t GetNumberOfProfiles() const = 0; 21 virtual size_t GetNumberOfProfiles() const = 0;
21 22
22 virtual size_t GetIndexOfProfileWithPath( 23 virtual size_t GetIndexOfProfileWithPath(
23 const FilePath& profile_path) const = 0; 24 const FilePath& profile_path) const = 0;
24 25
25 virtual string16 GetNameOfProfileAtIndex(size_t index) const = 0; 26 virtual string16 GetNameOfProfileAtIndex(size_t index) const = 0;
26 27
28 virtual string16 GetGAIANameOfProfileAtIndex(size_t index) const = 0;
29
27 virtual FilePath GetPathOfProfileAtIndex(size_t index) const = 0; 30 virtual FilePath GetPathOfProfileAtIndex(size_t index) const = 0;
28 31
29 virtual string16 GetUserNameOfProfileAtIndex(size_t index) const = 0; 32 virtual string16 GetUserNameOfProfileAtIndex(size_t index) const = 0;
30 33
31 virtual const gfx::Image& GetAvatarIconOfProfileAtIndex( 34 virtual gfx::Image GetAvatarIconOfProfileAtIndex(
35 size_t index) const = 0;
36
37 virtual SkBitmap GetGAIAPictureOfProfileAtIndex(size_t index) const = 0;
38
39 virtual bool IsUsingCustomAvatarIconForProfileAtIndex(
32 size_t index) const = 0; 40 size_t index) const = 0;
33 41
34 // Returns true if the profile at the given index is currently running any 42 // Returns true if the profile at the given index is currently running any
35 // background apps. 43 // background apps.
36 virtual bool GetBackgroundStatusOfProfileAtIndex( 44 virtual bool GetBackgroundStatusOfProfileAtIndex(
37 size_t index) const = 0; 45 size_t index) const = 0;
38 46
39 protected: 47 protected:
40 virtual ~ProfileInfoInterface() {} 48 virtual ~ProfileInfoInterface() {}
41 }; 49 };
42 50
43 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_ 51 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_info_cache.cc ('k') | chrome/browser/resources/ntp4/new_tab.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698