Adding instrumentation to locate the source of jankiness
[chromium-blink-merge.git] / chrome / browser / policy / managed_bookmarks_policy_handler.h
blobc06017431b52bfaad918c14125344365da0a2057
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.
5 #ifndef CHROME_BROWSER_POLICY_MANAGED_BOOKMARKS_POLICY_HANDLER_H_
6 #define CHROME_BROWSER_POLICY_MANAGED_BOOKMARKS_POLICY_HANDLER_H_
8 #include "components/policy/core/browser/configuration_policy_handler.h"
10 namespace base {
11 class ListValue;
14 namespace policy {
16 // Handles the ManagedBookmarks policy.
17 class ManagedBookmarksPolicyHandler : public SchemaValidatingPolicyHandler {
18 public:
19 explicit ManagedBookmarksPolicyHandler(Schema chrome_schema);
20 virtual ~ManagedBookmarksPolicyHandler();
22 // ConfigurationPolicyHandler methods:
23 virtual void ApplyPolicySettings(const PolicyMap& policies,
24 PrefValueMap* prefs) override;
26 private:
27 void FilterBookmarks(base::ListValue* bookmarks);
29 DISALLOW_COPY_AND_ASSIGN(ManagedBookmarksPolicyHandler);
32 } // namespace policy
34 #endif // CHROME_BROWSER_POLICY_MANAGED_BOOKMARKS_POLICY_HANDLER_H_