Roll src/third_party/WebKit f298044:aa8346d (svn 202628:202629)
[chromium-blink-merge.git] / components / sync_driver / sync_policy_handler.h
blob4b0be8164ccd1b3d15004167c17ba0b1bc22068b
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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_POLICY_HANDLER_H_
6 #define COMPONENTS_SYNC_DRIVER_SYNC_POLICY_HANDLER_H_
8 #include "base/compiler_specific.h"
9 #include "components/policy/core/browser/configuration_policy_handler.h"
11 class PrefValueMap;
13 namespace sync_driver {
15 class PolicyMap;
17 // ConfigurationPolicyHandler for the SyncDisabled policy.
18 class SyncPolicyHandler : public policy::TypeCheckingPolicyHandler {
19 public:
20 SyncPolicyHandler();
21 ~SyncPolicyHandler() override;
23 // ConfigurationPolicyHandler methods:
24 void ApplyPolicySettings(const policy::PolicyMap& policies,
25 PrefValueMap* prefs) override;
27 private:
28 DISALLOW_COPY_AND_ASSIGN(SyncPolicyHandler);
31 } // namespace sync_driver
33 #endif // COMPONENTS_SYNC_DRIVER_SYNC_POLICY_HANDLER_H_