diff options
author | danduong <danduong@chromium.org> | 2014-10-30 11:21:18 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-30 18:21:34 +0000 |
commit | 2d0c8cfc2d67eea473132d8582430c21529ce897 (patch) | |
tree | 75bc1b71022497bf3c5b6ddc873c1c60733e847a /components/enhanced_bookmarks/enhanced_bookmark_model_observer.h | |
parent | a3fe70262d92dbc36b32dbedac50930eb7920234 (diff) | |
download | chromium_src-2d0c8cfc2d67eea473132d8582430c21529ce897.zip chromium_src-2d0c8cfc2d67eea473132d8582430c21529ce897.tar.gz chromium_src-2d0c8cfc2d67eea473132d8582430c21529ce897.tar.bz2 |
Reduce frequency of requesting bookmark clusters.
Currently, we fetch for bookmarks on SyncCycleCompleted. We
actually just want to trigger a request for clusters when
bookmarks change due to a SyncCycle. By watching for
ExtensiveChanges from the BookmarksModel and saving some
state, we can more accurately determine this.
BUG=424254
Review URL: https://codereview.chromium.org/682933002
Cr-Commit-Position: refs/heads/master@{#302111}
Diffstat (limited to 'components/enhanced_bookmarks/enhanced_bookmark_model_observer.h')
-rw-r--r-- | components/enhanced_bookmarks/enhanced_bookmark_model_observer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/enhanced_bookmarks/enhanced_bookmark_model_observer.h b/components/enhanced_bookmarks/enhanced_bookmark_model_observer.h index 5ebfa16..eb83b57 100644 --- a/components/enhanced_bookmarks/enhanced_bookmark_model_observer.h +++ b/components/enhanced_bookmarks/enhanced_bookmark_model_observer.h @@ -25,6 +25,9 @@ class EnhancedBookmarkModelObserver { // Called when a node is removed from the model. virtual void EnhancedBookmarkRemoved(const BookmarkNode* node) = 0; + // Called when a node has changed. + virtual void EnhancedBookmarkNodeChanged(const BookmarkNode* node) = 0; + // Called when all user editable nodes are removed from the model. virtual void EnhancedBookmarkAllUserNodesRemoved() = 0; |