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

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

Issue 11620012: [Profiles, Fixit] Making GAIAInfoUpdateService into a ProfileKeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing RegisterUserPrefs Created 8 years 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) 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>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/hash_tables.h" 13 #include "base/hash_tables.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "chrome/browser/net/pref_proxy_config_tracker.h" 15 #include "chrome/browser/net/pref_proxy_config_tracker.h"
16 #include "chrome/browser/ui/webui/chrome_url_data_manager_factory.h" 16 #include "chrome/browser/ui/webui/chrome_url_data_manager_factory.h"
17 #include "content/public/browser/browser_context.h" 17 #include "content/public/browser/browser_context.h"
18 18
19 class ChromeAppCacheService; 19 class ChromeAppCacheService;
20 class ChromeURLDataManager; 20 class ChromeURLDataManager;
21 class ExtensionService; 21 class ExtensionService;
22 class ExtensionSpecialStoragePolicy; 22 class ExtensionSpecialStoragePolicy;
23 class FaviconService; 23 class FaviconService;
24 class GAIAInfoUpdateService;
25 class HostContentSettingsMap; 24 class HostContentSettingsMap;
26 class PasswordStore; 25 class PasswordStore;
27 class PrefService; 26 class PrefService;
28 class PromoCounter; 27 class PromoCounter;
29 class ProtocolHandlerRegistry; 28 class ProtocolHandlerRegistry;
30 class TestingProfile; 29 class TestingProfile;
31 class WebDataService; 30 class WebDataService;
32 31
33 namespace android { 32 namespace android {
34 class TabContentsProvider; 33 class TabContentsProvider;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // DEPRECATED. Instead, use ExtensionSystem::extension_service(). 197 // DEPRECATED. Instead, use ExtensionSystem::extension_service().
199 // Retrieves a pointer to the ExtensionService associated with this 198 // Retrieves a pointer to the ExtensionService associated with this
200 // profile. The ExtensionService is created at startup. 199 // profile. The ExtensionService is created at startup.
201 // TODO(yoz): remove this accessor (bug 104095). 200 // TODO(yoz): remove this accessor (bug 104095).
202 virtual ExtensionService* GetExtensionService() = 0; 201 virtual ExtensionService* GetExtensionService() = 0;
203 202
204 // Accessor. The instance is created upon first access. 203 // Accessor. The instance is created upon first access.
205 virtual ExtensionSpecialStoragePolicy* 204 virtual ExtensionSpecialStoragePolicy*
206 GetExtensionSpecialStoragePolicy() = 0; 205 GetExtensionSpecialStoragePolicy() = 0;
207 206
208 // Accessor. The instance is created upon first access.
209 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() = 0;
210
211 // Returns the ManagedModePolicyProvider for this profile, if it exists. 207 // Returns the ManagedModePolicyProvider for this profile, if it exists.
212 virtual policy::ManagedModePolicyProvider* GetManagedModePolicyProvider() = 0; 208 virtual policy::ManagedModePolicyProvider* GetManagedModePolicyProvider() = 0;
213 209
214 // Returns the PolicyService that provides policies for this profile. 210 // Returns the PolicyService that provides policies for this profile.
215 virtual policy::PolicyService* GetPolicyService() = 0; 211 virtual policy::PolicyService* GetPolicyService() = 0;
216 212
217 // Retrieves a pointer to the PrefService that manages the preferences 213 // Retrieves a pointer to the PrefService that manages the preferences
218 // for this user profile. 214 // for this user profile.
219 virtual PrefService* GetPrefs() = 0; 215 virtual PrefService* GetPrefs() = 0;
220 216
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 struct hash<Profile*> { 397 struct hash<Profile*> {
402 std::size_t operator()(Profile* const& p) const { 398 std::size_t operator()(Profile* const& p) const {
403 return reinterpret_cast<std::size_t>(p); 399 return reinterpret_cast<std::size_t>(p);
404 } 400 }
405 }; 401 };
406 402
407 } // namespace BASE_HASH_NAMESPACE 403 } // namespace BASE_HASH_NAMESPACE
408 #endif 404 #endif
409 405
410 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 406 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698