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

Side by Side Diff: chrome/browser/bookmarks/bookmark_model_observer.h

Issue 155913004: Eliminate Bookmarks dependence to bookmark_undo_utils.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for Android Unit Tests failing 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model.cc ('k') | chrome/browser/bookmarks/bookmark_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_OBSERVER_H_
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_OBSERVER_H_ 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_OBSERVER_H_
7 7
8 class BookmarkModel; 8 class BookmarkModel;
9 class BookmarkNode; 9 class BookmarkNode;
10 10
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // This tells observers to update themselves if they were waiting for the 92 // This tells observers to update themselves if they were waiting for the
93 // update to finish. 93 // update to finish.
94 virtual void ExtensiveBookmarkChangesEnded(BookmarkModel* model) {} 94 virtual void ExtensiveBookmarkChangesEnded(BookmarkModel* model) {}
95 95
96 // Invoked before all non-permanent bookmark nodes are removed. 96 // Invoked before all non-permanent bookmark nodes are removed.
97 virtual void OnWillRemoveAllBookmarks(BookmarkModel* model) {} 97 virtual void OnWillRemoveAllBookmarks(BookmarkModel* model) {}
98 98
99 // Invoked when all non-permanent bookmark nodes have been removed. 99 // Invoked when all non-permanent bookmark nodes have been removed.
100 virtual void BookmarkAllNodesRemoved(BookmarkModel* model) = 0; 100 virtual void BookmarkAllNodesRemoved(BookmarkModel* model) = 0;
101 101
102 // Invoked before a set of model changes that is initiated by a single user
103 // action. For example, this is called a single time when pasting from the
104 // clipboard before each pasted bookmark is added to the bookmark model.
105 virtual void GroupedBookmarkChangesBeginning(BookmarkModel* model) {}
106
107 // Invoked after a set of model changes triggered by a single user action has
108 // ended.
109 virtual void GroupedBookmarkChangesEnded(BookmarkModel* model) {}
110
102 protected: 111 protected:
103 virtual ~BookmarkModelObserver() {} 112 virtual ~BookmarkModelObserver() {}
104 }; 113 };
105 114
106 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_OBSERVER_H_ 115 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model.cc ('k') | chrome/browser/bookmarks/bookmark_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698