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