| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 53 } |
| 54 | 54 |
| 55 namespace content { | 55 namespace content { |
| 56 class WebContents; | 56 class WebContents; |
| 57 } | 57 } |
| 58 | 58 |
| 59 namespace extensions { | 59 namespace extensions { |
| 60 class ExtensionRegistry; | 60 class ExtensionRegistry; |
| 61 } | 61 } |
| 62 | 62 |
| 63 namespace sync_driver { |
| 64 class SyncSetupInProgressHandle; |
| 65 } |
| 66 |
| 63 namespace user_prefs { | 67 namespace user_prefs { |
| 64 class PrefRegistrySyncable; | 68 class PrefRegistrySyncable; |
| 65 } | 69 } |
| 66 | 70 |
| 67 // This class handles all the information related to a given supervised profile | 71 // This class handles all the information related to a given supervised profile |
| 68 // (e.g. the installed content packs, the default URL filtering behavior, or | 72 // (e.g. the installed content packs, the default URL filtering behavior, or |
| 69 // manual whitelist/blacklist overrides). | 73 // manual whitelist/blacklist overrides). |
| 70 class SupervisedUserService : public KeyedService, | 74 class SupervisedUserService : public KeyedService, |
| 71 #if defined(ENABLE_EXTENSIONS) | 75 #if defined(ENABLE_EXTENSIONS) |
| 72 public extensions::ManagementPolicy::Provider, | 76 public extensions::ManagementPolicy::Provider, |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 std::vector<scoped_refptr<SupervisedUserSiteList>> whitelists_; | 406 std::vector<scoped_refptr<SupervisedUserSiteList>> whitelists_; |
| 403 | 407 |
| 404 // Used to create permission requests. | 408 // Used to create permission requests. |
| 405 ScopedVector<PermissionRequestCreator> permissions_creators_; | 409 ScopedVector<PermissionRequestCreator> permissions_creators_; |
| 406 | 410 |
| 407 // Used to report inappropriate URLs to SafeSarch API. | 411 // Used to report inappropriate URLs to SafeSarch API. |
| 408 std::unique_ptr<SafeSearchURLReporter> url_reporter_; | 412 std::unique_ptr<SafeSearchURLReporter> url_reporter_; |
| 409 | 413 |
| 410 base::ObserverList<SupervisedUserServiceObserver> observer_list_; | 414 base::ObserverList<SupervisedUserServiceObserver> observer_list_; |
| 411 | 415 |
| 416 // Handle preventing Sync from running until configuration is complete. |
| 417 std::unique_ptr<sync_driver::SyncSetupInProgressHandle> setup_handle_; |
| 418 |
| 412 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_; | 419 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_; |
| 413 }; | 420 }; |
| 414 | 421 |
| 415 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ | 422 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ |
| OLD | NEW |