OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |