OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This class gathers state related to a single user profile. | 5 // This class gathers state related to a single user profile. |
6 | 6 |
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ |
8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
50 } | 50 } |
51 | 51 |
52 namespace content { | 52 namespace content { |
53 class WebUI; | 53 class WebUI; |
54 } | 54 } |
55 | 55 |
56 namespace storage { | 56 namespace storage { |
57 class FileSystemContext; | 57 class FileSystemContext; |
58 } | 58 } |
59 | 59 |
60 namespace history { | 60 namespace history { |
sdefresne
2014/12/19 15:11:42
Remove that forward-declaration.
Jitu( very slow this week)
2014/12/26 14:04:28
Done.
| |
61 class TopSites; | 61 class TopSitesProvider; |
62 } | 62 } |
63 | 63 |
64 namespace net { | 64 namespace net { |
65 class SSLConfigService; | 65 class SSLConfigService; |
66 } | 66 } |
67 | 67 |
68 namespace user_prefs { | 68 namespace user_prefs { |
69 class PrefRegistrySyncable; | 69 class PrefRegistrySyncable; |
70 } | 70 } |
71 | 71 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
207 virtual Profile* GetOriginalProfile() = 0; | 207 virtual Profile* GetOriginalProfile() = 0; |
208 | 208 |
209 // Returns whether the profile is supervised (either a legacy supervised | 209 // Returns whether the profile is supervised (either a legacy supervised |
210 // user or a child account; see SupervisedUserService). | 210 // user or a child account; see SupervisedUserService). |
211 virtual bool IsSupervised() = 0; | 211 virtual bool IsSupervised() = 0; |
212 // Returns whether the profile is associated with a child account. | 212 // Returns whether the profile is associated with a child account. |
213 virtual bool IsChild() = 0; | 213 virtual bool IsChild() = 0; |
214 // Returns whether the profile is a legacy supervised user profile. | 214 // Returns whether the profile is a legacy supervised user profile. |
215 virtual bool IsLegacySupervised() = 0; | 215 virtual bool IsLegacySupervised() = 0; |
216 | 216 |
217 // Returns a pointer to the TopSites (thumbnail manager) instance | |
218 // for this profile. | |
219 virtual history::TopSites* GetTopSites() = 0; | |
220 | |
221 // Variant of GetTopSites that doesn't force creation. | |
222 virtual history::TopSites* GetTopSitesWithoutCreating() = 0; | |
223 | |
224 // Accessor. The instance is created upon first access. | 217 // Accessor. The instance is created upon first access. |
225 virtual ExtensionSpecialStoragePolicy* | 218 virtual ExtensionSpecialStoragePolicy* |
226 GetExtensionSpecialStoragePolicy() = 0; | 219 GetExtensionSpecialStoragePolicy() = 0; |
227 | 220 |
228 // Retrieves a pointer to the PrefService that manages the | 221 // Retrieves a pointer to the PrefService that manages the |
229 // preferences for this user profile. | 222 // preferences for this user profile. |
230 virtual PrefService* GetPrefs() = 0; | 223 virtual PrefService* GetPrefs() = 0; |
231 | 224 |
232 // Retrieves a pointer to the PrefService that manages the default zoom | 225 // Retrieves a pointer to the PrefService that manages the default zoom |
233 // level and the per-host zoom levels for this user profile. | 226 // level and the per-host zoom levels for this user profile. |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
419 | 412 |
420 DISALLOW_COPY_AND_ASSIGN(Profile); | 413 DISALLOW_COPY_AND_ASSIGN(Profile); |
421 }; | 414 }; |
422 | 415 |
423 // The comparator for profile pointers as key in a map. | 416 // The comparator for profile pointers as key in a map. |
424 struct ProfileCompare { | 417 struct ProfileCompare { |
425 bool operator()(Profile* a, Profile* b) const; | 418 bool operator()(Profile* a, Profile* b) const; |
426 }; | 419 }; |
427 | 420 |
428 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 421 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |