summaryrefslogtreecommitdiffstats
path: root/components/bookmarks/browser/scoped_group_bookmark_actions.h
blob: c2f099784395e8a0659fd0a0ba065e30044b2aad (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
// 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 COMPONENTS_BOOKMARKS_BROWSER_SCOPED_GROUP_BOOKMARK_ACTIONS_H_
#define COMPONENTS_BOOKMARKS_BROWSER_SCOPED_GROUP_BOOKMARK_ACTIONS_H_

#include "base/macros.h"

namespace bookmarks {

class BookmarkModel;

// Scopes the grouping of a set of changes into one undoable action.
class ScopedGroupBookmarkActions {
 public:
  explicit ScopedGroupBookmarkActions(BookmarkModel* model);
  ~ScopedGroupBookmarkActions();

 private:
  BookmarkModel* model_;

  DISALLOW_COPY_AND_ASSIGN(ScopedGroupBookmarkActions);
};

}  // namespace bookmarks

#endif  // COMPONENTS_BOOKMARKS_BROWSER_SCOPED_GROUP_BOOKMARK_ACTIONS_H_