Revert "Reland c91b178b07b0d - Delete dead signin code (SigninGlobalError)"
[chromium-blink-merge.git] / components / undo / bookmark_undo_utils.h
blob987e27284c45b279feed3d7e04745d7d2c99e408
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 COMPONENTS_UNDO_BOOKMARK_UNDO_UTILS_H_
6 #define COMPONENTS_UNDO_BOOKMARK_UNDO_UTILS_H_
8 #include "base/basictypes.h"
10 class BookmarkUndoService;
11 class UndoManager;
13 // ScopedSuspendBookmarkUndo --------------------------------------------------
15 // Scopes the suspension of the undo tracking for non-user initiated changes
16 // such as those occuring during account synchronization.
17 class ScopedSuspendBookmarkUndo {
18 public:
19 explicit ScopedSuspendBookmarkUndo(
20 BookmarkUndoService* bookmark_undo_service);
21 ~ScopedSuspendBookmarkUndo();
23 private:
24 UndoManager* undo_manager_;
26 DISALLOW_COPY_AND_ASSIGN(ScopedSuspendBookmarkUndo);
29 #endif // COMPONENTS_UNDO_BOOKMARK_UNDO_UTILS_H_