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

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

Issue 815983002: Topsites become keyedService based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove extra inclusion from testing_profile.h Created 5 years, 10 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
OLDNEW
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
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 {
61 class TopSites;
62 }
63
64 namespace net { 60 namespace net {
65 class SSLConfigService; 61 class SSLConfigService;
66 } 62 }
67 63
68 namespace user_prefs { 64 namespace user_prefs {
69 class PrefRegistrySyncable; 65 class PrefRegistrySyncable;
70 } 66 }
71 67
72 // Instead of adding more members to Profile, consider creating a 68 // Instead of adding more members to Profile, consider creating a
73 // KeyedService. See 69 // KeyedService. See
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 virtual Profile* GetOriginalProfile() = 0; 178 virtual Profile* GetOriginalProfile() = 0;
183 179
184 // Returns whether the profile is supervised (either a legacy supervised 180 // Returns whether the profile is supervised (either a legacy supervised
185 // user or a child account; see SupervisedUserService). 181 // user or a child account; see SupervisedUserService).
186 virtual bool IsSupervised() = 0; 182 virtual bool IsSupervised() = 0;
187 // Returns whether the profile is associated with a child account. 183 // Returns whether the profile is associated with a child account.
188 virtual bool IsChild() = 0; 184 virtual bool IsChild() = 0;
189 // Returns whether the profile is a legacy supervised user profile. 185 // Returns whether the profile is a legacy supervised user profile.
190 virtual bool IsLegacySupervised() = 0; 186 virtual bool IsLegacySupervised() = 0;
191 187
192 // Returns a pointer to the TopSites (thumbnail manager) instance
193 // for this profile.
194 virtual history::TopSites* GetTopSites() = 0;
195
196 // Variant of GetTopSites that doesn't force creation.
197 virtual history::TopSites* GetTopSitesWithoutCreating() = 0;
198
199 // Accessor. The instance is created upon first access. 188 // Accessor. The instance is created upon first access.
200 virtual ExtensionSpecialStoragePolicy* 189 virtual ExtensionSpecialStoragePolicy*
201 GetExtensionSpecialStoragePolicy() = 0; 190 GetExtensionSpecialStoragePolicy() = 0;
202 191
203 // Retrieves a pointer to the PrefService that manages the 192 // Retrieves a pointer to the PrefService that manages the
204 // preferences for this user profile. 193 // preferences for this user profile.
205 virtual PrefService* GetPrefs() = 0; 194 virtual PrefService* GetPrefs() = 0;
206 195
207 // Retrieves a pointer to the PrefService that manages the default zoom 196 // Retrieves a pointer to the PrefService that manages the default zoom
208 // level and the per-host zoom levels for this user profile. 197 // level and the per-host zoom levels for this user profile.
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 400
412 DISALLOW_COPY_AND_ASSIGN(Profile); 401 DISALLOW_COPY_AND_ASSIGN(Profile);
413 }; 402 };
414 403
415 // The comparator for profile pointers as key in a map. 404 // The comparator for profile pointers as key in a map.
416 struct ProfileCompare { 405 struct ProfileCompare {
417 bool operator()(Profile* a, Profile* b) const; 406 bool operator()(Profile* a, Profile* b) const;
418 }; 407 };
419 408
420 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 409 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.cc ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698