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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_BOOKMARKS_BASE_BOOKMARK_MODEL_OBSERVER_H_
6 #define CHROME_BROWSER_BOOKMARKS_BASE_BOOKMARK_MODEL_OBSERVER_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "chrome/browser/bookmarks/bookmark_model_observer.h"
12 // Base class for a BookmarkModelObserver implementation. All mutations of the
13 // model funnel into the method BookmarkModelChanged.
14 class BaseBookmarkModelObserver
: public BookmarkModelObserver
{
16 BaseBookmarkModelObserver() {}
18 virtual void BookmarkModelChanged() = 0;
20 // BookmarkModelObserver:
21 virtual void BookmarkModelLoaded(BookmarkModel
* model
,
22 bool ids_reassigned
) OVERRIDE
;
23 virtual void BookmarkModelBeingDeleted(BookmarkModel
* model
) OVERRIDE
;
24 virtual void BookmarkNodeMoved(BookmarkModel
* model
,
25 const BookmarkNode
* old_parent
,
27 const BookmarkNode
* new_parent
,
28 int new_index
) OVERRIDE
;
29 virtual void BookmarkNodeAdded(BookmarkModel
* model
,
30 const BookmarkNode
* parent
,
32 virtual void BookmarkNodeRemoved(BookmarkModel
* model
,
33 const BookmarkNode
* parent
,
35 const BookmarkNode
* node
) OVERRIDE
;
36 virtual void BookmarkAllNodesRemoved(BookmarkModel
* model
) OVERRIDE
;
37 virtual void BookmarkNodeChanged(BookmarkModel
* model
,
38 const BookmarkNode
* node
) OVERRIDE
;
39 virtual void BookmarkNodeFaviconChanged(BookmarkModel
* model
,
40 const BookmarkNode
* node
) OVERRIDE
;
41 virtual void BookmarkNodeChildrenReordered(BookmarkModel
* model
,
42 const BookmarkNode
* node
) OVERRIDE
;
45 virtual ~BaseBookmarkModelObserver() {}
48 DISALLOW_COPY_AND_ASSIGN(BaseBookmarkModelObserver
);
51 #endif // CHROME_BROWSER_BOOKMARKS_BASE_BOOKMARK_MODEL_OBSERVER_H_