| 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_SEARCH_CONTEXTUAL_SEARCH_POLICY_HANDLER_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_CONTEXTUAL_SEARCH_POLICY_HANDLER_ANDROID_H_ |
| 6 #define CHROME_BROWSER_SEARCH_CONTEXTUAL_SEARCH_POLICY_HANDLER_ANDROID_H_ | 6 #define CHROME_BROWSER_SEARCH_CONTEXTUAL_SEARCH_POLICY_HANDLER_ANDROID_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 | 10 |
| 10 namespace policy { | 11 namespace policy { |
| 11 | 12 |
| 12 class PolicyMap; | 13 class PolicyMap; |
| 13 | 14 |
| 14 // ConfigurationPolicyHandler for the ContextualSearchEnabled policy. | 15 // ConfigurationPolicyHandler for the ContextualSearchEnabled policy. |
| 15 class ContextualSearchPolicyHandlerAndroid | 16 class ContextualSearchPolicyHandlerAndroid |
| 16 : public TypeCheckingPolicyHandler { | 17 : public TypeCheckingPolicyHandler { |
| 17 public: | 18 public: |
| 18 ContextualSearchPolicyHandlerAndroid(); | 19 ContextualSearchPolicyHandlerAndroid(); |
| 19 ~ContextualSearchPolicyHandlerAndroid() override; | 20 ~ContextualSearchPolicyHandlerAndroid() override; |
| 20 | 21 |
| 21 // ConfigurationPolicyHandler methods: | 22 // ConfigurationPolicyHandler methods: |
| 22 void ApplyPolicySettings(const PolicyMap& policies, | 23 void ApplyPolicySettings(const PolicyMap& policies, |
| 23 PrefValueMap* prefs) override; | 24 PrefValueMap* prefs) override; |
| 24 | 25 |
| 25 private: | 26 private: |
| 26 DISALLOW_COPY_AND_ASSIGN(ContextualSearchPolicyHandlerAndroid); | 27 DISALLOW_COPY_AND_ASSIGN(ContextualSearchPolicyHandlerAndroid); |
| 27 }; | 28 }; |
| 28 | 29 |
| 29 } // namespace policy | 30 } // namespace policy |
| 30 | 31 |
| 31 #endif // CHROME_BROWSER_SEARCH_CONTEXTUAL_SEARCH_POLICY_HANDLER_ANDROID_H_ | 32 #endif // CHROME_BROWSER_SEARCH_CONTEXTUAL_SEARCH_POLICY_HANDLER_ANDROID_H_ |
| OLD | NEW |