Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / search / contextual_search_policy_handler_android.h
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SEARCH_CONTEXTUAL_SEARCH_POLICY_HANDLER_ANDROID_H_
6 #define CHROME_BROWSER_SEARCH_CONTEXTUAL_SEARCH_POLICY_HANDLER_ANDROID_H_
7
8 #include "components/policy/core/browser/configuration_policy_handler.h"
9
10 namespace policy {
11
12 class PolicyMap;
13
14 // ConfigurationPolicyHandler for the ContextualSearchEnabled policy.
15 class ContextualSearchPolicyHandlerAndroid
16   : public TypeCheckingPolicyHandler {
17  public:
18   ContextualSearchPolicyHandlerAndroid();
19   ~ContextualSearchPolicyHandlerAndroid() override;
20
21   // ConfigurationPolicyHandler methods:
22   void ApplyPolicySettings(const PolicyMap& policies,
23                            PrefValueMap* prefs) override;
24
25  private:
26   DISALLOW_COPY_AND_ASSIGN(ContextualSearchPolicyHandlerAndroid);
27 };
28
29 }  // namespace policy
30
31 #endif  // CHROME_BROWSER_SEARCH_CONTEXTUAL_SEARCH_POLICY_HANDLER_ANDROID_H_