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

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

Issue 9764006: Make ExtensionPrefValueMap a ProfileKeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: -- Created 8 years, 8 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) 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 #pragma once 9 #pragma once
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/hash_tables.h" 14 #include "base/hash_tables.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "chrome/browser/net/preconnect.h" // TODO: remove this. 16 #include "chrome/browser/net/preconnect.h" // TODO: remove this.
17 #include "chrome/browser/net/pref_proxy_config_tracker.h" 17 #include "chrome/browser/net/pref_proxy_config_tracker.h"
18 #include "content/public/browser/browser_context.h" 18 #include "content/public/browser/browser_context.h"
19 19
20 class AutocompleteClassifier; 20 class AutocompleteClassifier;
21 class BookmarkModel; 21 class BookmarkModel;
22 class ChromeAppCacheService; 22 class ChromeAppCacheService;
23 class ChromeURLDataManager; 23 class ChromeURLDataManager;
24 class Extension; 24 class Extension;
25 class ExtensionEventRouter; 25 class ExtensionEventRouter;
26 class ExtensionPrefValueMap;
27 class ExtensionProcessManager; 26 class ExtensionProcessManager;
28 class ExtensionService; 27 class ExtensionService;
29 class ExtensionSpecialStoragePolicy; 28 class ExtensionSpecialStoragePolicy;
30 class FaviconService; 29 class FaviconService;
31 class GAIAInfoUpdateService; 30 class GAIAInfoUpdateService;
32 class HistoryService; 31 class HistoryService;
33 class HostContentSettingsMap; 32 class HostContentSettingsMap;
34 class PasswordStore; 33 class PasswordStore;
35 class PrefService; 34 class PrefService;
36 class PromoCounter; 35 class PromoCounter;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 virtual history::TopSites* GetTopSites() = 0; 199 virtual history::TopSites* GetTopSites() = 0;
201 200
202 // Variant of GetTopSites that doesn't force creation. 201 // Variant of GetTopSites that doesn't force creation.
203 virtual history::TopSites* GetTopSitesWithoutCreating() = 0; 202 virtual history::TopSites* GetTopSitesWithoutCreating() = 0;
204 203
205 // Retrieves a pointer to the VisitedLinkMaster associated with this 204 // Retrieves a pointer to the VisitedLinkMaster associated with this
206 // profile. The VisitedLinkMaster is lazily created the first time 205 // profile. The VisitedLinkMaster is lazily created the first time
207 // that this method is called. 206 // that this method is called.
208 virtual VisitedLinkMaster* GetVisitedLinkMaster() = 0; 207 virtual VisitedLinkMaster* GetVisitedLinkMaster() = 0;
209 208
210 // Accessor. The instance is created upon first access.
211 // TODO(yoz): make this a ProfileKeyedService.
212 virtual ExtensionPrefValueMap* GetExtensionPrefValueMap() = 0;
213
214 // DEPRECATED. Instead, use ExtensionSystem::extension_service(). 209 // DEPRECATED. Instead, use ExtensionSystem::extension_service().
215 // Retrieves a pointer to the ExtensionService associated with this 210 // Retrieves a pointer to the ExtensionService associated with this
216 // profile. The ExtensionService is created at startup. 211 // profile. The ExtensionService is created at startup.
217 // TODO(yoz): remove this accessor (bug 104095). 212 // TODO(yoz): remove this accessor (bug 104095).
218 virtual ExtensionService* GetExtensionService() = 0; 213 virtual ExtensionService* GetExtensionService() = 0;
219 214
220 // DEPRECATED. Instead, use ExtensionSystem::user_script_master(). 215 // DEPRECATED. Instead, use ExtensionSystem::user_script_master().
221 // Retrieves a pointer to the UserScriptMaster associated with this 216 // Retrieves a pointer to the UserScriptMaster associated with this
222 // profile. The UserScriptMaster is lazily created the first time 217 // profile. The UserScriptMaster is lazily created the first time
223 // that this method is called. 218 // that this method is called.
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 struct hash<Profile*> { 475 struct hash<Profile*> {
481 std::size_t operator()(Profile* const& p) const { 476 std::size_t operator()(Profile* const& p) const {
482 return reinterpret_cast<std::size_t>(p); 477 return reinterpret_cast<std::size_t>(p);
483 } 478 }
484 }; 479 };
485 480
486 } // namespace BASE_HASH_NAMESPACE 481 } // namespace BASE_HASH_NAMESPACE
487 #endif 482 #endif
488 483
489 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 484 #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