NaCl: Update revision in DEPS, r12770 -> r12773
[chromium-blink-merge.git] / chrome / browser / undo / bookmark_undo_utils.h
blob3a9018ac1fc78d4c50532d20a4c0e002269956d1
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_UNDO_BOOKMARK_UNDO_UTILS_H_
6 #define CHROME_BROWSER_UNDO_BOOKMARK_UNDO_UTILS_H_
8 #include "base/basictypes.h"
10 class Profile;
12 // ScopedSuspendBookmarkUndo --------------------------------------------------
14 // Scopes the suspension of the undo tracking for non-user initiated changes
15 // such as those occuring during profile synchronization.
16 class ScopedSuspendBookmarkUndo {
17 public:
18 explicit ScopedSuspendBookmarkUndo(Profile* profile);
19 ~ScopedSuspendBookmarkUndo();
21 private:
22 Profile* profile_;
24 DISALLOW_COPY_AND_ASSIGN(ScopedSuspendBookmarkUndo);
27 // ScopedGroupBookmarkActions -------------------------------------------------
29 // Scopes the grouping of a set of changes into one undoable action.
30 class ScopedGroupBookmarkActions {
31 public:
32 explicit ScopedGroupBookmarkActions(Profile* profile);
33 ~ScopedGroupBookmarkActions();
35 private:
36 Profile* profile_;
38 DISALLOW_COPY_AND_ASSIGN(ScopedGroupBookmarkActions);
41 #endif // CHROME_BROWSER_UNDO_BOOKMARK_UNDO_UTILS_H_