Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: components/bookmarks/browser/bookmark_undo_provider.h

Issue 1379983002: Supporting undoing bookmark deletion without creating new ID. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address some more feedback Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/bookmarks/browser/bookmark_undo_delegate.h ('k') | components/undo.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/bookmarks/browser/bookmark_undo_provider.h
diff --git a/components/bookmarks/browser/bookmark_undo_provider.h b/components/bookmarks/browser/bookmark_undo_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..a76602b1a73dffdc19fb1cdd49e07da8edfabba1
--- /dev/null
+++ b/components/bookmarks/browser/bookmark_undo_provider.h
@@ -0,0 +1,29 @@
+// 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_PROVIDER_H_
+#define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UNDO_PROVIDER_H_
+
+#include "base/memory/scoped_ptr.h"
+
+namespace bookmarks {
+
+class BookmarkNode;
+
+// The interface for providing undo support.
+class BookmarkUndoProvider {
+ public:
+ // Restores the previously removed |node| at |parent| in the specified
+ // |index|.
+ virtual void RestoreRemovedNode(const BookmarkNode* parent,
+ int index,
+ scoped_ptr<BookmarkNode> node) = 0;
+
+ protected:
+ virtual ~BookmarkUndoProvider() {}
+};
+
+} // namespace bookmarks
+
+#endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UNDO_PROVIDER_H_
« no previous file with comments | « components/bookmarks/browser/bookmark_undo_delegate.h ('k') | components/undo.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698