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 COMPONENTS_POLICY_CORE_BROWSER_AUTOFILL_POLICY_HANDLER_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_BROWSER_AUTOFILL_POLICY_HANDLER_H_ |
6 #define COMPONENTS_POLICY_CORE_BROWSER_AUTOFILL_POLICY_HANDLER_H_ | 6 #define COMPONENTS_POLICY_CORE_BROWSER_AUTOFILL_POLICY_HANDLER_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "components/policy/core/browser/configuration_policy_handler.h" | 9 #include "components/policy/core/browser/configuration_policy_handler.h" |
9 #include "components/policy/policy_export.h" | 10 #include "components/policy/policy_export.h" |
10 | 11 |
11 namespace policy { | 12 namespace policy { |
12 | 13 |
13 // ConfigurationPolicyHandler for the AutofillEnabled policy. | 14 // ConfigurationPolicyHandler for the AutofillEnabled policy. |
14 class POLICY_EXPORT AutofillPolicyHandler : public TypeCheckingPolicyHandler { | 15 class POLICY_EXPORT AutofillPolicyHandler : public TypeCheckingPolicyHandler { |
15 public: | 16 public: |
16 AutofillPolicyHandler(); | 17 AutofillPolicyHandler(); |
17 ~AutofillPolicyHandler() override; | 18 ~AutofillPolicyHandler() override; |
18 | 19 |
19 // ConfigurationPolicyHandler methods: | 20 // ConfigurationPolicyHandler methods: |
20 void ApplyPolicySettings(const PolicyMap& policies, | 21 void ApplyPolicySettings(const PolicyMap& policies, |
21 PrefValueMap* prefs) override; | 22 PrefValueMap* prefs) override; |
22 | 23 |
23 private: | 24 private: |
24 DISALLOW_COPY_AND_ASSIGN(AutofillPolicyHandler); | 25 DISALLOW_COPY_AND_ASSIGN(AutofillPolicyHandler); |
25 }; | 26 }; |
26 | 27 |
27 } // namespace policy | 28 } // namespace policy |
28 | 29 |
29 #endif // COMPONENTS_POLICY_CORE_BROWSER_AUTOFILL_POLICY_HANDLER_H_ | 30 #endif // COMPONENTS_POLICY_CORE_BROWSER_AUTOFILL_POLICY_HANDLER_H_ |
OLD | NEW |