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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
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 { | |
55 class EventRouter; | |
56 } | |
57 | |
58 namespace fileapi { | 54 namespace fileapi { |
59 class FileSystemContext; | 55 class FileSystemContext; |
60 } | 56 } |
61 | 57 |
62 namespace history { | 58 namespace history { |
63 class ShortcutsBackend; | 59 class ShortcutsBackend; |
64 class TopSites; | 60 class TopSites; |
65 } | 61 } |
66 | 62 |
67 namespace net { | 63 namespace net { |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 | 186 |
191 // Variant of GetTopSites that doesn't force creation. | 187 // Variant of GetTopSites that doesn't force creation. |
192 virtual history::TopSites* GetTopSitesWithoutCreating() = 0; | 188 virtual history::TopSites* GetTopSitesWithoutCreating() = 0; |
193 | 189 |
194 // DEPRECATED. Instead, use ExtensionSystem::extension_service(). | 190 // DEPRECATED. Instead, use ExtensionSystem::extension_service(). |
195 // Retrieves a pointer to the ExtensionService associated with this | 191 // Retrieves a pointer to the ExtensionService associated with this |
196 // profile. The ExtensionService is created at startup. | 192 // profile. The ExtensionService is created at startup. |
197 // TODO(yoz): remove this accessor (bug 104095). | 193 // TODO(yoz): remove this accessor (bug 104095). |
198 virtual ExtensionService* GetExtensionService() = 0; | 194 virtual ExtensionService* GetExtensionService() = 0; |
199 | 195 |
200 // DEPRECATED. Instead, use ExtensionSystem::event_router(). | |
201 // Accessor. The instance is created at startup. | |
202 // TODO(yoz): remove this accessor (bug 104095). | |
203 virtual extensions::EventRouter* GetExtensionEventRouter() = 0; | |
204 | |
205 // Accessor. The instance is created upon first access. | 196 // Accessor. The instance is created upon first access. |
206 virtual ExtensionSpecialStoragePolicy* | 197 virtual ExtensionSpecialStoragePolicy* |
207 GetExtensionSpecialStoragePolicy() = 0; | 198 GetExtensionSpecialStoragePolicy() = 0; |
208 | 199 |
209 // Accessor. The instance is created upon first access. | 200 // Accessor. The instance is created upon first access. |
210 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() = 0; | 201 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() = 0; |
211 | 202 |
212 // Returns the UserCloudPolicyManager (if any) that handles this profile's | 203 // Returns the UserCloudPolicyManager (if any) that handles this profile's |
213 // connection to the cloud-based management service. | 204 // connection to the cloud-based management service. |
214 virtual policy::UserCloudPolicyManager* GetUserCloudPolicyManager() = 0; | 205 virtual policy::UserCloudPolicyManager* GetUserCloudPolicyManager() = 0; |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 struct hash<Profile*> { | 393 struct hash<Profile*> { |
403 std::size_t operator()(Profile* const& p) const { | 394 std::size_t operator()(Profile* const& p) const { |
404 return reinterpret_cast<std::size_t>(p); | 395 return reinterpret_cast<std::size_t>(p); |
405 } | 396 } |
406 }; | 397 }; |
407 | 398 |
408 } // namespace BASE_HASH_NAMESPACE | 399 } // namespace BASE_HASH_NAMESPACE |
409 #endif | 400 #endif |
410 | 401 |
411 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 402 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |