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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 const GoogleServiceAuthError& auth_error, | 255 const GoogleServiceAuthError& auth_error, |
256 const std::string& token); | 256 const std::string& token); |
257 | 257 |
258 void SetupSync(); | 258 void SetupSync(); |
259 void StartSetupSync(); | 259 void StartSetupSync(); |
260 void FinishSetupSyncWhenReady(); | 260 void FinishSetupSyncWhenReady(); |
261 void FinishSetupSync(); | 261 void FinishSetupSync(); |
262 | 262 |
263 bool ProfileIsSupervised() const; | 263 bool ProfileIsSupervised() const; |
264 | 264 |
| 265 void OnCustodianInfoChanged(); |
| 266 |
265 #if defined(ENABLE_EXTENSIONS) | 267 #if defined(ENABLE_EXTENSIONS) |
266 // Internal implementation for ExtensionManagementPolicy::Delegate methods. | 268 // Internal implementation for ExtensionManagementPolicy::Delegate methods. |
267 // If |error| is not NULL, it will be filled with an error message if the | 269 // If |error| is not NULL, it will be filled with an error message if the |
268 // requested extension action (install, modify status, etc.) is not permitted. | 270 // requested extension action (install, modify status, etc.) is not permitted. |
269 bool ExtensionManagementPolicyImpl(const extensions::Extension* extension, | 271 bool ExtensionManagementPolicyImpl(const extensions::Extension* extension, |
270 base::string16* error) const; | 272 base::string16* error) const; |
271 | 273 |
272 // Returns a list of all installed and enabled site lists in the current | 274 // Returns a list of all installed and enabled site lists in the current |
273 // supervised profile. | 275 // supervised profile. |
274 ScopedVector<SupervisedUserSiteList> GetActiveSiteLists(); | 276 ScopedVector<SupervisedUserSiteList> GetActiveSiteLists(); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 | 344 |
343 // Used to create permission requests. | 345 // Used to create permission requests. |
344 scoped_ptr<PermissionRequestCreator> permissions_creator_; | 346 scoped_ptr<PermissionRequestCreator> permissions_creator_; |
345 | 347 |
346 ObserverList<SupervisedUserServiceObserver> observer_list_; | 348 ObserverList<SupervisedUserServiceObserver> observer_list_; |
347 | 349 |
348 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_; | 350 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_; |
349 }; | 351 }; |
350 | 352 |
351 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ | 353 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ |
OLD | NEW |