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

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

Issue 134863002: Track when profiles are last used. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
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/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 10
11 namespace base {
12 class Time;
13 }
14
11 namespace gfx { 15 namespace gfx {
12 class Image; 16 class Image;
13 } 17 }
14 18
15 // This abstract interface is used to query the profiles backend for information 19 // This abstract interface is used to query the profiles backend for information
16 // about the different profiles. Its sole concrete implementation is the 20 // about the different profiles. Its sole concrete implementation is the
17 // ProfileInfoCache. This interface exists largely to assist in testing. 21 // ProfileInfoCache. This interface exists largely to assist in testing.
18 class ProfileInfoInterface { 22 class ProfileInfoInterface {
19 public: 23 public:
20 virtual size_t GetNumberOfProfiles() const = 0; 24 virtual size_t GetNumberOfProfiles() const = 0;
21 25
22 virtual size_t GetIndexOfProfileWithPath( 26 virtual size_t GetIndexOfProfileWithPath(
23 const base::FilePath& profile_path) const = 0; 27 const base::FilePath& profile_path) const = 0;
24 28
29 virtual base::Time GetProfileActive(size_t index) const = 0;
30
25 virtual base::string16 GetNameOfProfileAtIndex(size_t index) const = 0; 31 virtual base::string16 GetNameOfProfileAtIndex(size_t index) const = 0;
26 32
27 virtual base::string16 GetShortcutNameOfProfileAtIndex( 33 virtual base::string16 GetShortcutNameOfProfileAtIndex(
28 size_t index) const = 0; 34 size_t index) const = 0;
29 35
30 virtual base::FilePath GetPathOfProfileAtIndex(size_t index) const = 0; 36 virtual base::FilePath GetPathOfProfileAtIndex(size_t index) const = 0;
31 37
32 virtual base::string16 GetUserNameOfProfileAtIndex(size_t index) const = 0; 38 virtual base::string16 GetUserNameOfProfileAtIndex(size_t index) const = 0;
33 39
34 virtual const gfx::Image& GetAvatarIconOfProfileAtIndex( 40 virtual const gfx::Image& GetAvatarIconOfProfileAtIndex(
(...skipping 29 matching lines...) Expand all
64 virtual bool ProfileIsSigninRequiredAtIndex(size_t index) const = 0; 70 virtual bool ProfileIsSigninRequiredAtIndex(size_t index) const = 0;
65 71
66 // Profile is known to be ephemeral and should be deleted when closed. 72 // Profile is known to be ephemeral and should be deleted when closed.
67 virtual bool ProfileIsEphemeralAtIndex(size_t index) const = 0; 73 virtual bool ProfileIsEphemeralAtIndex(size_t index) const = 0;
68 74
69 protected: 75 protected:
70 virtual ~ProfileInfoInterface() {} 76 virtual ~ProfileInfoInterface() {}
71 }; 77 };
72 78
73 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_ 79 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698