Chromium Code Reviews| 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_ |