| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 class TopSites; | 61 class TopSites; |
| 62 } | 62 } |
| 63 | 63 |
| 64 namespace net { | 64 namespace net { |
| 65 class SSLConfigService; | 65 class SSLConfigService; |
| 66 } | 66 } |
| 67 | 67 |
| 68 namespace policy { | 68 namespace policy { |
| 69 class ManagedModePolicyProvider; | 69 class ManagedModePolicyProvider; |
| 70 class PolicyService; | 70 class PolicyService; |
| 71 class UserCloudPolicyManager; | |
| 72 } | 71 } |
| 73 | 72 |
| 74 class Profile : public content::BrowserContext { | 73 class Profile : public content::BrowserContext { |
| 75 public: | 74 public: |
| 76 // Profile services are accessed with the following parameter. This parameter | 75 // Profile services are accessed with the following parameter. This parameter |
| 77 // defines what the caller plans to do with the service. | 76 // defines what the caller plans to do with the service. |
| 78 // The caller is responsible for not performing any operation that would | 77 // The caller is responsible for not performing any operation that would |
| 79 // result in persistent implicit records while using an OffTheRecord profile. | 78 // result in persistent implicit records while using an OffTheRecord profile. |
| 80 // This flag allows the profile to perform an additional check. | 79 // This flag allows the profile to perform an additional check. |
| 81 // | 80 // |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 // TODO(yoz): remove this accessor (bug 104095). | 201 // TODO(yoz): remove this accessor (bug 104095). |
| 203 virtual ExtensionService* GetExtensionService() = 0; | 202 virtual ExtensionService* GetExtensionService() = 0; |
| 204 | 203 |
| 205 // Accessor. The instance is created upon first access. | 204 // Accessor. The instance is created upon first access. |
| 206 virtual ExtensionSpecialStoragePolicy* | 205 virtual ExtensionSpecialStoragePolicy* |
| 207 GetExtensionSpecialStoragePolicy() = 0; | 206 GetExtensionSpecialStoragePolicy() = 0; |
| 208 | 207 |
| 209 // Accessor. The instance is created upon first access. | 208 // Accessor. The instance is created upon first access. |
| 210 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() = 0; | 209 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() = 0; |
| 211 | 210 |
| 212 // Returns the UserCloudPolicyManager (if any) that handles this profile's | |
| 213 // connection to the cloud-based management service. | |
| 214 virtual policy::UserCloudPolicyManager* GetUserCloudPolicyManager() = 0; | |
| 215 | |
| 216 // Returns the ManagedModePolicyProvider for this profile, if it exists. | 211 // Returns the ManagedModePolicyProvider for this profile, if it exists. |
| 217 virtual policy::ManagedModePolicyProvider* GetManagedModePolicyProvider() = 0; | 212 virtual policy::ManagedModePolicyProvider* GetManagedModePolicyProvider() = 0; |
| 218 | 213 |
| 219 // Returns the PolicyService that provides policies for this profile. | 214 // Returns the PolicyService that provides policies for this profile. |
| 220 virtual policy::PolicyService* GetPolicyService() = 0; | 215 virtual policy::PolicyService* GetPolicyService() = 0; |
| 221 | 216 |
| 222 // Retrieves a pointer to the PrefService that manages the preferences | 217 // Retrieves a pointer to the PrefService that manages the preferences |
| 223 // for this user profile. | 218 // for this user profile. |
| 224 virtual PrefService* GetPrefs() = 0; | 219 virtual PrefService* GetPrefs() = 0; |
| 225 | 220 |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 struct hash<Profile*> { | 401 struct hash<Profile*> { |
| 407 std::size_t operator()(Profile* const& p) const { | 402 std::size_t operator()(Profile* const& p) const { |
| 408 return reinterpret_cast<std::size_t>(p); | 403 return reinterpret_cast<std::size_t>(p); |
| 409 } | 404 } |
| 410 }; | 405 }; |
| 411 | 406 |
| 412 } // namespace BASE_HASH_NAMESPACE | 407 } // namespace BASE_HASH_NAMESPACE |
| 413 #endif | 408 #endif |
| 414 | 409 |
| 415 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 410 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |