blob: e0eeead424444a5e6d5dfadf8dcaab30eca30052 (
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
29
|
// 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_UNDO_BOOKMARK_UNDO_UTILS_H_
#define COMPONENTS_UNDO_BOOKMARK_UNDO_UTILS_H_
#include "base/macros.h"
class BookmarkUndoService;
class UndoManager;
// ScopedSuspendBookmarkUndo --------------------------------------------------
// Scopes the suspension of the undo tracking for non-user initiated changes
// such as those occuring during account synchronization.
class ScopedSuspendBookmarkUndo {
public:
explicit ScopedSuspendBookmarkUndo(
BookmarkUndoService* bookmark_undo_service);
~ScopedSuspendBookmarkUndo();
private:
UndoManager* undo_manager_;
DISALLOW_COPY_AND_ASSIGN(ScopedSuspendBookmarkUndo);
};
#endif // COMPONENTS_UNDO_BOOKMARK_UNDO_UTILS_H_
|