OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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_CONTENT_SETTINGS_CONTENT_SETTINGS_SUPERVISED_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_SUPERVISED_PROVIDER_H_ |
6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_SUPERVISED_PROVIDER_H_ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_SUPERVISED_PROVIDER_H_ |
7 | 7 |
8 // A content setting provider that is set by the custodian of a supervised user. | 8 // A content setting provider that is set by the custodian of a supervised user. |
9 | 9 |
10 #include "base/callback_list.h" | 10 #include "base/callback_list.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/synchronization/lock.h" | 12 #include "base/synchronization/lock.h" |
13 #include "components/content_settings/core/browser/content_settings_binary_value
_map.h" | 13 #include "components/content_settings/core/browser/content_settings_binary_value
_map.h" |
14 #include "components/content_settings/core/browser/content_settings_observable_p
rovider.h" | 14 #include "components/content_settings/core/browser/content_settings_observable_p
rovider.h" |
15 | 15 |
16 class PrefService; | |
17 class SupervisedUserSettingsService; | 16 class SupervisedUserSettingsService; |
18 | 17 |
19 namespace content_settings { | 18 namespace content_settings { |
20 | 19 |
21 // SupervisedProvider that provides content-settings managed by the custodian | 20 // SupervisedProvider that provides content-settings managed by the custodian |
22 // of a supervised user. | 21 // of a supervised user. |
23 class SupervisedProvider : public ObservableProvider { | 22 class SupervisedProvider : public ObservableProvider { |
24 public: | 23 public: |
25 explicit SupervisedProvider( | 24 explicit SupervisedProvider( |
26 SupervisedUserSettingsService* supervised_user_settings_service); | 25 SupervisedUserSettingsService* supervised_user_settings_service); |
(...skipping 28 matching lines...) Expand all Loading... |
55 std::unique_ptr< | 54 std::unique_ptr< |
56 base::CallbackList<void(const base::DictionaryValue*)>::Subscription> | 55 base::CallbackList<void(const base::DictionaryValue*)>::Subscription> |
57 user_settings_subscription_; | 56 user_settings_subscription_; |
58 | 57 |
59 DISALLOW_COPY_AND_ASSIGN(SupervisedProvider); | 58 DISALLOW_COPY_AND_ASSIGN(SupervisedProvider); |
60 }; | 59 }; |
61 | 60 |
62 } // namespace content_settings | 61 } // namespace content_settings |
63 | 62 |
64 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_SUPERVISED_PROVIDER_
H_ | 63 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_SUPERVISED_PROVIDER_
H_ |
OLD | NEW |