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 #pragma once | |
8 | 7 |
9 class BookmarkModel; | 8 class BookmarkModel; |
10 class BookmarkNode; | 9 class BookmarkNode; |
11 | 10 |
12 // Observer for the BookmarkModel. | 11 // Observer for the BookmarkModel. |
13 class BookmarkModelObserver { | 12 class BookmarkModelObserver { |
14 public: | 13 public: |
15 // Invoked when the model has finished loading. |ids_reassigned| mirrors | 14 // Invoked when the model has finished loading. |ids_reassigned| mirrors |
16 // that of BookmarkLoadDetails::ids_reassigned. See it for details. | 15 // that of BookmarkLoadDetails::ids_reassigned. See it for details. |
17 virtual void Loaded(BookmarkModel* model, bool ids_reassigned) = 0; | 16 virtual void Loaded(BookmarkModel* model, bool ids_reassigned) = 0; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // Invoked after an extensive set of model changes has ended. | 64 // Invoked after an extensive set of model changes has ended. |
66 // This tells observers to update themselves if they were waiting for the | 65 // This tells observers to update themselves if they were waiting for the |
67 // update to finish. | 66 // update to finish. |
68 virtual void ExtensiveBookmarkChangesEnded(BookmarkModel* model) {} | 67 virtual void ExtensiveBookmarkChangesEnded(BookmarkModel* model) {} |
69 | 68 |
70 protected: | 69 protected: |
71 virtual ~BookmarkModelObserver() {} | 70 virtual ~BookmarkModelObserver() {} |
72 }; | 71 }; |
73 | 72 |
74 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_OBSERVER_H_ | 73 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_OBSERVER_H_ |
OLD | NEW |