| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ | 6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 const GoogleServiceAuthError& auth_error, | 251 const GoogleServiceAuthError& auth_error, |
| 252 const std::string& token); | 252 const std::string& token); |
| 253 | 253 |
| 254 void SetupSync(); | 254 void SetupSync(); |
| 255 void StartSetupSync(); | 255 void StartSetupSync(); |
| 256 void FinishSetupSyncWhenReady(); | 256 void FinishSetupSyncWhenReady(); |
| 257 void FinishSetupSync(); | 257 void FinishSetupSync(); |
| 258 | 258 |
| 259 bool ProfileIsSupervised() const; | 259 bool ProfileIsSupervised() const; |
| 260 | 260 |
| 261 void OnCustodianInfoChanged(); |
| 262 |
| 261 #if defined(ENABLE_EXTENSIONS) | 263 #if defined(ENABLE_EXTENSIONS) |
| 262 // Internal implementation for ExtensionManagementPolicy::Delegate methods. | 264 // Internal implementation for ExtensionManagementPolicy::Delegate methods. |
| 263 // If |error| is not NULL, it will be filled with an error message if the | 265 // If |error| is not NULL, it will be filled with an error message if the |
| 264 // requested extension action (install, modify status, etc.) is not permitted. | 266 // requested extension action (install, modify status, etc.) is not permitted. |
| 265 bool ExtensionManagementPolicyImpl(const extensions::Extension* extension, | 267 bool ExtensionManagementPolicyImpl(const extensions::Extension* extension, |
| 266 base::string16* error) const; | 268 base::string16* error) const; |
| 267 | 269 |
| 268 // Returns a list of all installed and enabled site lists in the current | 270 // Returns a list of all installed and enabled site lists in the current |
| 269 // supervised profile. | 271 // supervised profile. |
| 270 ScopedVector<SupervisedUserSiteList> GetActiveSiteLists(); | 272 ScopedVector<SupervisedUserSiteList> GetActiveSiteLists(); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 | 332 |
| 331 // Used to create permission requests. | 333 // Used to create permission requests. |
| 332 scoped_ptr<PermissionRequestCreator> permissions_creator_; | 334 scoped_ptr<PermissionRequestCreator> permissions_creator_; |
| 333 | 335 |
| 334 ObserverList<SupervisedUserServiceObserver> observer_list_; | 336 ObserverList<SupervisedUserServiceObserver> observer_list_; |
| 335 | 337 |
| 336 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_; | 338 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_; |
| 337 }; | 339 }; |
| 338 | 340 |
| 339 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ | 341 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ |
| OLD | NEW |