Home | History | Annotate | Download | only in policy
      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_POLICY_MANAGED_BOOKMARKS_POLICY_HANDLER_H_
      6 #define CHROME_BROWSER_POLICY_MANAGED_BOOKMARKS_POLICY_HANDLER_H_
      7 
      8 #include "components/policy/core/browser/configuration_policy_handler.h"
      9 
     10 namespace base {
     11 class ListValue;
     12 }
     13 
     14 namespace policy {
     15 
     16 // Handles the ManagedBookmarks policy.
     17 class ManagedBookmarksPolicyHandler : public SchemaValidatingPolicyHandler {
     18  public:
     19   explicit ManagedBookmarksPolicyHandler(Schema chrome_schema);
     20   virtual ~ManagedBookmarksPolicyHandler();
     21 
     22   // ConfigurationPolicyHandler methods:
     23   virtual void ApplyPolicySettings(const PolicyMap& policies,
     24                                    PrefValueMap* prefs) OVERRIDE;
     25 
     26  private:
     27   void FilterBookmarks(base::ListValue* bookmarks);
     28 
     29   DISALLOW_COPY_AND_ASSIGN(ManagedBookmarksPolicyHandler);
     30 };
     31 
     32 }  // namespace policy
     33 
     34 #endif  // CHROME_BROWSER_POLICY_MANAGED_BOOKMARKS_POLICY_HANDLER_H_
     35