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

Unified Diff: chrome/browser/bookmarks/bookmark_utils.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_utils.h
diff --git a/chrome/browser/bookmarks/bookmark_utils.h b/chrome/browser/bookmarks/bookmark_utils.h
index fa5086dc8d36df2c5fba606fbbe4a392f39b9574..35660c854ae573ef0705b07f25179ffa52976ca8 100644
--- a/chrome/browser/bookmarks/bookmark_utils.h
+++ b/chrome/browser/bookmarks/bookmark_utils.h
@@ -13,6 +13,7 @@
class BookmarkModel;
class BookmarkNode;
+class Profile;
namespace user_prefs {
class PrefRegistrySyncable;
@@ -106,6 +107,21 @@ void AddIfNotBookmarked(BookmarkModel* model,
// Removes all bookmarks for the given |url|.
void RemoveAllBookmarks(BookmarkModel* model, const GURL& url);
+// ScopedGroupBookmarkActions -------------------------------------------------
+
+// Scopes the grouping of a set of changes into one undoable action.
+class ScopedGroupBookmarkActions {
tfarina 2014/02/22 15:11:21 Move this to a separate header file?
Tom Cassiotis 2014/02/22 20:54:02 Done.
+ public:
+ explicit ScopedGroupBookmarkActions(Profile* profile);
+ explicit ScopedGroupBookmarkActions(BookmarkModel* model);
+ ~ScopedGroupBookmarkActions();
+
+ private:
+ BookmarkModel* model_;
+
+ DISALLOW_COPY_AND_ASSIGN(ScopedGroupBookmarkActions);
+};
+
} // namespace bookmark_utils
#endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698