OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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_SYNC_SYNC_POLICY_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_SYNC_POLICY_HANDLER_H_ |
6 #define CHROME_BROWSER_SYNC_SYNC_POLICY_HANDLER_H_ | 6 #define CHROME_BROWSER_SYNC_SYNC_POLICY_HANDLER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/browser/policy/configuration_policy_handler.h" | 9 #include "components/policy/core/browser/configuration_policy_handler.h" |
10 | 10 |
11 class PrefValueMap; | 11 class PrefValueMap; |
12 | 12 |
13 namespace browser_sync { | 13 namespace browser_sync { |
14 | 14 |
15 class PolicyMap; | 15 class PolicyMap; |
16 | 16 |
17 // ConfigurationPolicyHandler for the SyncDisabled policy. | 17 // ConfigurationPolicyHandler for the SyncDisabled policy. |
18 class SyncPolicyHandler : public policy::TypeCheckingPolicyHandler { | 18 class SyncPolicyHandler : public policy::TypeCheckingPolicyHandler { |
19 public: | 19 public: |
20 SyncPolicyHandler(); | 20 SyncPolicyHandler(); |
21 virtual ~SyncPolicyHandler(); | 21 virtual ~SyncPolicyHandler(); |
22 | 22 |
23 // ConfigurationPolicyHandler methods: | 23 // ConfigurationPolicyHandler methods: |
24 virtual void ApplyPolicySettings(const policy::PolicyMap& policies, | 24 virtual void ApplyPolicySettings(const policy::PolicyMap& policies, |
25 PrefValueMap* prefs) OVERRIDE; | 25 PrefValueMap* prefs) OVERRIDE; |
26 | 26 |
27 private: | 27 private: |
28 DISALLOW_COPY_AND_ASSIGN(SyncPolicyHandler); | 28 DISALLOW_COPY_AND_ASSIGN(SyncPolicyHandler); |
29 }; | 29 }; |
30 | 30 |
31 } // namespace browser_sync | 31 } // namespace browser_sync |
32 | 32 |
33 #endif // CHROME_BROWSER_SYNC_SYNC_POLICY_HANDLER_H_ | 33 #endif // CHROME_BROWSER_SYNC_SYNC_POLICY_HANDLER_H_ |
OLD | NEW |