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

Unified Diff: chrome/browser/bookmarks/bookmark_model.h

Issue 155913004: Eliminate Bookmarks dependence to bookmark_undo_utils.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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: chrome/browser/bookmarks/bookmark_model.h
diff --git a/chrome/browser/bookmarks/bookmark_model.h b/chrome/browser/bookmarks/bookmark_model.h
index 5578bc1825f4e5acc16b393f6a253a9cbda75838..dfa9e694a3d8c56cc871350b48f47d764b628c0c 100644
--- a/chrome/browser/bookmarks/bookmark_model.h
+++ b/chrome/browser/bookmarks/bookmark_model.h
@@ -43,6 +43,10 @@ namespace chrome {
struct FaviconImageResult;
}
+namespace bookmark_utils {
+class ScopedGroupBookmarkActions;
+}
+
// BookmarkNode ---------------------------------------------------------------
// BookmarkNode contains information about a starred entry: title, URL, favicon,
@@ -439,6 +443,7 @@ class BookmarkModel : public content::NotificationObserver,
friend class BookmarkCodecTest;
friend class BookmarkModelTest;
friend class BookmarkStorage;
+ friend class bookmark_utils::ScopedGroupBookmarkActions;
// Used to order BookmarkNodes by URL.
class NodeURLComparator {
@@ -514,6 +519,11 @@ class BookmarkModel : public content::NotificationObserver,
// If we're waiting on a favicon for node, the load request is canceled.
void CancelPendingFaviconLoadRequests(BookmarkNode* node);
+ // Notifies the observers that a set of changes initiated by a single user
+ // action is about to happen and has completed.
+ void BeginGroupedChanges();
+ void EndGroupedChanges();
+
// content::NotificationObserver:
virtual void Observe(int type,
const content::NotificationSource& source,

Powered by Google App Engine
This is Rietveld 408576698