| 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 <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 void UpdateSiteLists(); | 244 void UpdateSiteLists(); |
| 245 | 245 |
| 246 // Updates the manual overrides for hosts in the URL filters when the | 246 // Updates the manual overrides for hosts in the URL filters when the |
| 247 // corresponding preference is changed. | 247 // corresponding preference is changed. |
| 248 void UpdateManualHosts(); | 248 void UpdateManualHosts(); |
| 249 | 249 |
| 250 // Updates the manual overrides for URLs in the URL filters when the | 250 // Updates the manual overrides for URLs in the URL filters when the |
| 251 // corresponding preference is changed. | 251 // corresponding preference is changed. |
| 252 void UpdateManualURLs(); | 252 void UpdateManualURLs(); |
| 253 | 253 |
| 254 // Returns the human readable name of the supervised user. |
| 255 std::string GetSupervisedUserName() const; |
| 256 |
| 254 // Owns us via the KeyedService mechanism. | 257 // Owns us via the KeyedService mechanism. |
| 255 Profile* profile_; | 258 Profile* profile_; |
| 256 | 259 |
| 257 bool active_; | 260 bool active_; |
| 258 | 261 |
| 259 Delegate* delegate_; | 262 Delegate* delegate_; |
| 260 | 263 |
| 261 ScopedObserver<extensions::ExtensionRegistry, | 264 ScopedObserver<extensions::ExtensionRegistry, |
| 262 extensions::ExtensionRegistryObserver> | 265 extensions::ExtensionRegistryObserver> |
| 263 extension_registry_observer_; | 266 extension_registry_observer_; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 281 // Used to create permission requests. | 284 // Used to create permission requests. |
| 282 scoped_ptr<PermissionRequestCreator> permissions_creator_; | 285 scoped_ptr<PermissionRequestCreator> permissions_creator_; |
| 283 | 286 |
| 284 // True iff we are waiting for a permission request to be issued. | 287 // True iff we are waiting for a permission request to be issued. |
| 285 bool waiting_for_permissions_; | 288 bool waiting_for_permissions_; |
| 286 | 289 |
| 287 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_; | 290 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_; |
| 288 }; | 291 }; |
| 289 | 292 |
| 290 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ | 293 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ |
| OLD | NEW |