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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 namespace chromeos { | 45 namespace chromeos { |
46 class LibCrosServiceLibraryImpl; | 46 class LibCrosServiceLibraryImpl; |
47 class ResetDefaultProxyConfigServiceTask; | 47 class ResetDefaultProxyConfigServiceTask; |
48 } | 48 } |
49 | 49 |
50 namespace content { | 50 namespace content { |
51 class WebUI; | 51 class WebUI; |
52 } | 52 } |
53 | 53 |
54 namespace extensions { | 54 namespace extensions { |
55 class EventRouter; | |
56 class UserScriptMaster; | 55 class UserScriptMaster; |
57 } | 56 } |
58 | 57 |
59 namespace fileapi { | 58 namespace fileapi { |
60 class FileSystemContext; | 59 class FileSystemContext; |
61 } | 60 } |
62 | 61 |
63 namespace history { | 62 namespace history { |
64 class ShortcutsBackend; | 63 class ShortcutsBackend; |
65 class TopSites; | 64 class TopSites; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 // TODO(yoz): remove this accessor (bug 104095). | 197 // TODO(yoz): remove this accessor (bug 104095). |
199 virtual ExtensionService* GetExtensionService() = 0; | 198 virtual ExtensionService* GetExtensionService() = 0; |
200 | 199 |
201 // DEPRECATED. Instead, use ExtensionSystem::user_script_master(). | 200 // DEPRECATED. Instead, use ExtensionSystem::user_script_master(). |
202 // Retrieves a pointer to the extensions::UserScriptMaster associated with | 201 // Retrieves a pointer to the extensions::UserScriptMaster associated with |
203 // this profile. The extensions::UserScriptMaster is lazily created the first | 202 // this profile. The extensions::UserScriptMaster is lazily created the first |
204 // time that this method is called. | 203 // time that this method is called. |
205 // TODO(yoz): remove this accessor (bug 104095). | 204 // TODO(yoz): remove this accessor (bug 104095). |
206 virtual extensions::UserScriptMaster* GetUserScriptMaster() = 0; | 205 virtual extensions::UserScriptMaster* GetUserScriptMaster() = 0; |
207 | 206 |
208 // DEPRECATED. Instead, use ExtensionSystem::event_router(). | |
209 // Accessor. The instance is created at startup. | |
210 // TODO(yoz): remove this accessor (bug 104095). | |
211 virtual extensions::EventRouter* GetExtensionEventRouter() = 0; | |
212 | |
213 // Accessor. The instance is created upon first access. | 207 // Accessor. The instance is created upon first access. |
214 virtual ExtensionSpecialStoragePolicy* | 208 virtual ExtensionSpecialStoragePolicy* |
215 GetExtensionSpecialStoragePolicy() = 0; | 209 GetExtensionSpecialStoragePolicy() = 0; |
216 | 210 |
217 // Accessor. The instance is created upon first access. | 211 // Accessor. The instance is created upon first access. |
218 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() = 0; | 212 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() = 0; |
219 | 213 |
220 // Returns the UserCloudPolicyManager (if any) that handles this profile's | 214 // Returns the UserCloudPolicyManager (if any) that handles this profile's |
221 // connection to the cloud-based management service. | 215 // connection to the cloud-based management service. |
222 virtual policy::UserCloudPolicyManager* GetUserCloudPolicyManager() = 0; | 216 virtual policy::UserCloudPolicyManager* GetUserCloudPolicyManager() = 0; |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 struct hash<Profile*> { | 403 struct hash<Profile*> { |
410 std::size_t operator()(Profile* const& p) const { | 404 std::size_t operator()(Profile* const& p) const { |
411 return reinterpret_cast<std::size_t>(p); | 405 return reinterpret_cast<std::size_t>(p); |
412 } | 406 } |
413 }; | 407 }; |
414 | 408 |
415 } // namespace BASE_HASH_NAMESPACE | 409 } // namespace BASE_HASH_NAMESPACE |
416 #endif | 410 #endif |
417 | 411 |
418 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 412 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |