OLD | NEW |
| (Empty) |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_POLICY_HANDLER_H_ | |
6 #define COMPONENTS_SYNC_DRIVER_SYNC_POLICY_HANDLER_H_ | |
7 | |
8 #include "base/compiler_specific.h" | |
9 #include "base/macros.h" | |
10 #include "components/policy/core/browser/configuration_policy_handler.h" | |
11 | |
12 class PrefValueMap; | |
13 | |
14 namespace sync_driver { | |
15 | |
16 class PolicyMap; | |
17 | |
18 // ConfigurationPolicyHandler for the SyncDisabled policy. | |
19 class SyncPolicyHandler : public policy::TypeCheckingPolicyHandler { | |
20 public: | |
21 SyncPolicyHandler(); | |
22 ~SyncPolicyHandler() override; | |
23 | |
24 // ConfigurationPolicyHandler methods: | |
25 void ApplyPolicySettings(const policy::PolicyMap& policies, | |
26 PrefValueMap* prefs) override; | |
27 | |
28 private: | |
29 DISALLOW_COPY_AND_ASSIGN(SyncPolicyHandler); | |
30 }; | |
31 | |
32 } // namespace sync_driver | |
33 | |
34 #endif // COMPONENTS_SYNC_DRIVER_SYNC_POLICY_HANDLER_H_ | |
OLD | NEW |