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 COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_MODEL_OBSERVER_H_ |
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_OBSERVER_H_ | 6 #define COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_MODEL_OBSERVER_H_ |
7 | 7 |
8 class BookmarkModel; | 8 class BookmarkModel; |
9 class BookmarkNode; | 9 class BookmarkNode; |
10 | 10 |
11 // Observer for the BookmarkModel. | 11 // Observer for the BookmarkModel. |
12 class BookmarkModelObserver { | 12 class BookmarkModelObserver { |
13 public: | 13 public: |
14 // Invoked when the model has finished loading. |ids_reassigned| mirrors | 14 // Invoked when the model has finished loading. |ids_reassigned| mirrors |
15 // that of BookmarkLoadDetails::ids_reassigned. See it for details. | 15 // that of BookmarkLoadDetails::ids_reassigned. See it for details. |
16 virtual void BookmarkModelLoaded(BookmarkModel* model, | 16 virtual void BookmarkModelLoaded(BookmarkModel* model, |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 virtual void GroupedBookmarkChangesBeginning(BookmarkModel* model) {} | 105 virtual void GroupedBookmarkChangesBeginning(BookmarkModel* model) {} |
106 | 106 |
107 // Invoked after a set of model changes triggered by a single user action has | 107 // Invoked after a set of model changes triggered by a single user action has |
108 // ended. | 108 // ended. |
109 virtual void GroupedBookmarkChangesEnded(BookmarkModel* model) {} | 109 virtual void GroupedBookmarkChangesEnded(BookmarkModel* model) {} |
110 | 110 |
111 protected: | 111 protected: |
112 virtual ~BookmarkModelObserver() {} | 112 virtual ~BookmarkModelObserver() {} |
113 }; | 113 }; |
114 | 114 |
115 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_OBSERVER_H_ | 115 #endif // COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_MODEL_OBSERVER_H_ |
OLD | NEW |