| 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 | 208 |
| 209 // DEPRECATED. Instead, use ExtensionSystem::event_router(). | 209 // DEPRECATED. Instead, use ExtensionSystem::event_router(). |
| 210 // Accessor. The instance is created at startup. | 210 // Accessor. The instance is created at startup. |
| 211 // TODO(yoz): remove this accessor (bug 104095). | 211 // TODO(yoz): remove this accessor (bug 104095). |
| 212 virtual extensions::EventRouter* GetExtensionEventRouter() = 0; | 212 virtual extensions::EventRouter* GetExtensionEventRouter() = 0; |
| 213 | 213 |
| 214 // Accessor. The instance is created upon first access. | 214 // Accessor. The instance is created upon first access. |
| 215 virtual ExtensionSpecialStoragePolicy* | 215 virtual ExtensionSpecialStoragePolicy* |
| 216 GetExtensionSpecialStoragePolicy() = 0; | 216 GetExtensionSpecialStoragePolicy() = 0; |
| 217 | 217 |
| 218 // Retrieves a pointer to the FaviconService associated with this |
| 219 // profile. The FaviconService is lazily created the first time |
| 220 // that this method is called. |
| 221 // |
| 222 // Although FaviconService is refcounted, this will not addref, and callers |
| 223 // do not need to do any reference counting as long as they keep the pointer |
| 224 // only for the local scope (which they should do anyway since the browser |
| 225 // process may decide to shut down). |
| 226 // |
| 227 // |access| defines what the caller plans to do with the service. See |
| 228 // the ServiceAccessType definition above. |
| 229 virtual FaviconService* GetFaviconService(ServiceAccessType access) = 0; |
| 230 |
| 218 // Accessor. The instance is created upon first access. | 231 // Accessor. The instance is created upon first access. |
| 219 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() = 0; | 232 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() = 0; |
| 220 | 233 |
| 221 // Returns the UserCloudPolicyManager (if any) that handles this profile's | 234 // Returns the UserCloudPolicyManager (if any) that handles this profile's |
| 222 // connection to the cloud-based management service. | 235 // connection to the cloud-based management service. |
| 223 virtual policy::UserCloudPolicyManager* GetUserCloudPolicyManager() = 0; | 236 virtual policy::UserCloudPolicyManager* GetUserCloudPolicyManager() = 0; |
| 224 | 237 |
| 225 // Returns the PolicyService that provides policies for this profile. | 238 // Returns the PolicyService that provides policies for this profile. |
| 226 virtual policy::PolicyService* GetPolicyService() = 0; | 239 virtual policy::PolicyService* GetPolicyService() = 0; |
| 227 | 240 |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 struct hash<Profile*> { | 415 struct hash<Profile*> { |
| 403 std::size_t operator()(Profile* const& p) const { | 416 std::size_t operator()(Profile* const& p) const { |
| 404 return reinterpret_cast<std::size_t>(p); | 417 return reinterpret_cast<std::size_t>(p); |
| 405 } | 418 } |
| 406 }; | 419 }; |
| 407 | 420 |
| 408 } // namespace BASE_HASH_NAMESPACE | 421 } // namespace BASE_HASH_NAMESPACE |
| 409 #endif | 422 #endif |
| 410 | 423 |
| 411 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 424 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |