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> |
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 BookmarkModel; | 19 class BookmarkModel; |
20 class ChromeAppCacheService; | 20 class ChromeAppCacheService; |
21 class ChromeURLDataManager; | 21 class ChromeURLDataManager; |
22 class ExtensionEventRouter; | |
23 class ExtensionProcessManager; | 22 class ExtensionProcessManager; |
24 class ExtensionService; | 23 class ExtensionService; |
25 class ExtensionSpecialStoragePolicy; | 24 class ExtensionSpecialStoragePolicy; |
26 class FaviconService; | 25 class FaviconService; |
27 class GAIAInfoUpdateService; | 26 class GAIAInfoUpdateService; |
28 class HistoryService; | 27 class HistoryService; |
29 class HostContentSettingsMap; | 28 class HostContentSettingsMap; |
30 class PasswordStore; | 29 class PasswordStore; |
31 class PrefService; | 30 class PrefService; |
32 class PromoCounter; | 31 class PromoCounter; |
(...skipping 17 matching lines...) Expand all Loading... |
50 namespace chromeos { | 49 namespace chromeos { |
51 class LibCrosServiceLibraryImpl; | 50 class LibCrosServiceLibraryImpl; |
52 class ResetDefaultProxyConfigServiceTask; | 51 class ResetDefaultProxyConfigServiceTask; |
53 } | 52 } |
54 | 53 |
55 namespace content { | 54 namespace content { |
56 class WebUI; | 55 class WebUI; |
57 } | 56 } |
58 | 57 |
59 namespace extensions { | 58 namespace extensions { |
| 59 class EventRouter; |
60 class UserScriptMaster; | 60 class UserScriptMaster; |
61 } | 61 } |
62 | 62 |
63 namespace fileapi { | 63 namespace fileapi { |
64 class FileSystemContext; | 64 class FileSystemContext; |
65 } | 65 } |
66 | 66 |
67 namespace history { | 67 namespace history { |
68 class TopSites; | 68 class TopSites; |
69 class ShortcutsBackend; | 69 class ShortcutsBackend; |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 203 |
204 // DEPRECATED. Instead, use ExtensionSystem::process_manager(). | 204 // DEPRECATED. Instead, use ExtensionSystem::process_manager(). |
205 // Retrieves a pointer to the ExtensionProcessManager associated with this | 205 // Retrieves a pointer to the ExtensionProcessManager associated with this |
206 // profile. The instance is created at startup. | 206 // profile. The instance is created at startup. |
207 // TODO(yoz): remove this accessor (bug 104095). | 207 // TODO(yoz): remove this accessor (bug 104095). |
208 virtual ExtensionProcessManager* GetExtensionProcessManager() = 0; | 208 virtual ExtensionProcessManager* GetExtensionProcessManager() = 0; |
209 | 209 |
210 // DEPRECATED. Instead, use ExtensionSystem::event_router(). | 210 // DEPRECATED. Instead, use ExtensionSystem::event_router(). |
211 // Accessor. The instance is created at startup. | 211 // Accessor. The instance is created at startup. |
212 // TODO(yoz): remove this accessor (bug 104095). | 212 // TODO(yoz): remove this accessor (bug 104095). |
213 virtual ExtensionEventRouter* GetExtensionEventRouter() = 0; | 213 virtual extensions::EventRouter* GetExtensionEventRouter() = 0; |
214 | 214 |
215 // Accessor. The instance is created upon first access. | 215 // Accessor. The instance is created upon first access. |
216 virtual ExtensionSpecialStoragePolicy* | 216 virtual ExtensionSpecialStoragePolicy* |
217 GetExtensionSpecialStoragePolicy() = 0; | 217 GetExtensionSpecialStoragePolicy() = 0; |
218 | 218 |
219 // Retrieves a pointer to the FaviconService associated with this | 219 // Retrieves a pointer to the FaviconService associated with this |
220 // profile. The FaviconService is lazily created the first time | 220 // profile. The FaviconService is lazily created the first time |
221 // that this method is called. | 221 // that this method is called. |
222 // | 222 // |
223 // Although FaviconService is refcounted, this will not addref, and callers | 223 // Although FaviconService is refcounted, this will not addref, and callers |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 struct hash<Profile*> { | 423 struct hash<Profile*> { |
424 std::size_t operator()(Profile* const& p) const { | 424 std::size_t operator()(Profile* const& p) const { |
425 return reinterpret_cast<std::size_t>(p); | 425 return reinterpret_cast<std::size_t>(p); |
426 } | 426 } |
427 }; | 427 }; |
428 | 428 |
429 } // namespace BASE_HASH_NAMESPACE | 429 } // namespace BASE_HASH_NAMESPACE |
430 #endif | 430 #endif |
431 | 431 |
432 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 432 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |