blob: 2cf1d5cc6d7b3f1828d58525778c657e9b9cd4d7 [file] [log] [blame]
// 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 CHROME_BROWSER_UNDO_BOOKMARK_UNDO_UTILS_H_
#define CHROME_BROWSER_UNDO_BOOKMARK_UNDO_UTILS_H_
#include "base/basictypes.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 // CHROME_BROWSER_UNDO_BOOKMARK_UNDO_UTILS_H_