| Index: components/bookmarks/browser/bookmark_undo_delegate.h
|
| diff --git a/components/bookmarks/browser/bookmark_undo_delegate.h b/components/bookmarks/browser/bookmark_undo_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f0e2d7fe5170df0dfb025048a42b8fceecc1b53a
|
| --- /dev/null
|
| +++ b/components/bookmarks/browser/bookmark_undo_delegate.h
|
| @@ -0,0 +1,35 @@
|
| +// 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.
|
| +
|
| +#ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UNDO_DELEGATE_H_
|
| +#define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UNDO_DELEGATE_H_
|
| +
|
| +#include "base/memory/scoped_ptr.h"
|
| +
|
| +namespace bookmarks {
|
| +
|
| +class BookmarkModel;
|
| +class BookmarkNode;
|
| +class BookmarkUndoProvider;
|
| +
|
| +// Delegate to handle bookmark change events in order to support undo when
|
| +// requested.
|
| +class BookmarkUndoDelegate {
|
| + public:
|
| + 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,
|
| + int index,
|
| + scoped_ptr<BookmarkNode> node) = 0;
|
| +};
|
| +
|
| +
|
| +} // namespace bookmarks
|
| +
|
| +#endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UNDO_DELEGATE_H_
|
|
|