blob: 89d6908d3c76a1a07ed0b1b2b46b6bc5ab68318f [file] [log] [blame]
// Copyright 2015 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.
#include <memory>
namespace bookmarks {
class BookmarkModel;
class BookmarkNode;
class BookmarkUndoProvider;
// Delegate to handle bookmark change events in order to support undo when
// requested.
class BookmarkUndoDelegate {
virtual ~BookmarkUndoDelegate() {}
// Sets the provider that will do the undo work.
virtual void SetUndoProvider(BookmarkUndoProvider* provider) = 0;
// Called when |node| was removed from |parent| at position |index|.
virtual void OnBookmarkNodeRemoved(BookmarkModel* model,
const BookmarkNode* parent,
size_t index,
std::unique_ptr<BookmarkNode> node) = 0;
} // namespace bookmarks