Index: components/bookmarks/browser/bookmark_model_observer.h |
diff --git a/components/bookmarks/browser/bookmark_model_observer.h b/components/bookmarks/browser/bookmark_model_observer.h |
index f3e1f9a52a11ba117083e4b29e3c52f336f0b461..d1dc8f8a0b5fe16b055d02ef29b7bb17a67e8455 100644 |
--- a/components/bookmarks/browser/bookmark_model_observer.h |
+++ b/components/bookmarks/browser/bookmark_model_observer.h |
@@ -29,6 +29,12 @@ class BookmarkModelObserver { |
const BookmarkNode* new_parent, |
int new_index) = 0; |
+ // Invoked prior to adding a bookmark node, and in particular, prior to adding |
+ // it to the parent. This function can be used to alter the contents of the |
+ // node before BookmarkNodeAdded listeners know about it. |
+ virtual void BookmarkNodeAdding(BookmarkModel* model, |
Yoyo Zhou
2014/06/13 23:54:00
OnWillAddBookmarkNode is more consistent with the
Mike Wittman
2014/06/14 00:49:55
Changed to OnWillAddBookmarkNode.
|
+ BookmarkNode* node) {} |
+ |
// Invoked when a node has been added. |
virtual void BookmarkNodeAdded(BookmarkModel* model, |
const BookmarkNode* parent, |