summaryrefslogtreecommitdiffstats
path: root/chrome/browser/search/contextual_search_policy_handler_android.h
blob: 3794c200d3a5e78f38321f041679cd73c8c44174 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_SEARCH_CONTEXTUAL_SEARCH_POLICY_HANDLER_ANDROID_H_
#define CHROME_BROWSER_SEARCH_CONTEXTUAL_SEARCH_POLICY_HANDLER_ANDROID_H_

#include "components/policy/core/browser/configuration_policy_handler.h"

namespace policy {

class PolicyMap;

// ConfigurationPolicyHandler for the ContextualSearchEnabled policy.
class ContextualSearchPolicyHandlerAndroid
  : public TypeCheckingPolicyHandler {
 public:
  ContextualSearchPolicyHandlerAndroid();
  ~ContextualSearchPolicyHandlerAndroid() override;

  // ConfigurationPolicyHandler methods:
  void ApplyPolicySettings(const PolicyMap& policies,
                           PrefValueMap* prefs) override;

 private:
  DISALLOW_COPY_AND_ASSIGN(ContextualSearchPolicyHandlerAndroid);
};

}  // namespace policy

#endif  // CHROME_BROWSER_SEARCH_CONTEXTUAL_SEARCH_POLICY_HANDLER_ANDROID_H_