OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_ATTRIBUTES_STORAGE_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_ATTRIBUTES_STORAGE_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILE_ATTRIBUTES_STORAGE_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_ATTRIBUTES_STORAGE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | |
11 #include <vector> | |
12 | |
10 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/strings/string16.h" | |
15 #include "chrome/browser/profiles/profile_attributes_storage_observer.h" | |
lwchkg
2016/01/27 22:37:19
I looking into forward declaring this class, but c
| |
11 | 16 |
17 namespace base { | |
18 class FilePath; | |
19 } // namespace base | |
12 class ProfileAttributesEntry; | 20 class ProfileAttributesEntry; |
13 | 21 |
14 class ProfileAttributesStorage { | 22 class ProfileAttributesStorage { |
15 public: | 23 public: |
16 ProfileAttributesStorage() {} | 24 ProfileAttributesStorage() {} |
17 ~ProfileAttributesStorage() {} | 25 ~ProfileAttributesStorage() {} |
18 | 26 |
19 // If the |supervised_user_id| is non-empty, the profile will be marked to be | 27 // If the |supervised_user_id| is non-empty, the profile will be marked to be |
20 // omitted from the avatar-menu list on desktop versions. This is used while a | 28 // omitted from the avatar-menu list on desktop versions. This is used while a |
21 // supervised user is in the process of being registered with the server. Use | 29 // supervised user is in the process of being registered with the server. Use |
(...skipping 17 matching lines...) Expand all Loading... | |
39 // if the operation is successful and |entry| can be used. Returns false | 47 // if the operation is successful and |entry| can be used. Returns false |
40 // otherwise. | 48 // otherwise. |
41 // |entry| should not be cached as it may not reflect subsequent changes to | 49 // |entry| should not be cached as it may not reflect subsequent changes to |
42 // the profile's metadata. | 50 // the profile's metadata. |
43 virtual bool GetProfileAttributesWithPath( | 51 virtual bool GetProfileAttributesWithPath( |
44 const base::FilePath& path, ProfileAttributesEntry** entry) = 0; | 52 const base::FilePath& path, ProfileAttributesEntry** entry) = 0; |
45 | 53 |
46 // Returns the count of known profiles. | 54 // Returns the count of known profiles. |
47 virtual size_t GetNumberOfProfiles() const = 0; | 55 virtual size_t GetNumberOfProfiles() const = 0; |
48 | 56 |
57 virtual void AddObserver(ProfileAttributesStorageObserver* observer) = 0; | |
58 virtual void RemoveObserver(ProfileAttributesStorageObserver* observer) = 0; | |
59 | |
60 private: | |
49 DISALLOW_COPY_AND_ASSIGN(ProfileAttributesStorage); | 61 DISALLOW_COPY_AND_ASSIGN(ProfileAttributesStorage); |
50 }; | 62 }; |
51 | 63 |
52 #endif // CHROME_BROWSER_PROFILES_PROFILE_ATTRIBUTES_STORAGE_H_ | 64 #endif // CHROME_BROWSER_PROFILES_PROFILE_ATTRIBUTES_STORAGE_H_ |
OLD | NEW |