| 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 initiated by a single user action |
| 103 // is about to begin. |
| 104 virtual void GroupedBookmarkChangesBeginning(BookmarkModel* model) {} |
| 105 |
| 106 // Invoked after a set of model changes triggered by a single user action has |
| 107 // ended. |
| 108 virtual void GroupedBookmarkChangesEnded(BookmarkModel* model) {} |
| 109 |
| 102 protected: | 110 protected: |
| 103 virtual ~BookmarkModelObserver() {} | 111 virtual ~BookmarkModelObserver() {} |
| 104 }; | 112 }; |
| 105 | 113 |
| 106 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_OBSERVER_H_ | 114 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_OBSERVER_H_ |
| OLD | NEW |