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_model_observer.h

Issue 338593002: Set metainfo ID for enhanced bookmarks extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: add comments for hash values Created 6 years, 6 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
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..11504e94d73f9e728f6febf721cdb24891dc93c8 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 OnWillAddBookmarkNode(BookmarkModel* model,
+ BookmarkNode* node) {}
+
// Invoked when a node has been added.
virtual void BookmarkNodeAdded(BookmarkModel* model,
const BookmarkNode* parent,
« no previous file with comments | « components/bookmarks/browser/bookmark_model.cc ('k') | components/bookmarks/browser/bookmark_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698