Revert of Add Masonry to key_silk_cases. (patchset #3 id:40001 of https://codereview...
[chromium-blink-merge.git] / components / bookmarks / browser / base_bookmark_model_observer.h
blob37a010787e0f1bb907c6bdc94576f3550c2f11ab
1 // Copyright 2014 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 COMPONENTS_BOOKMARKS_BROWSER_BASE_BOOKMARK_MODEL_OBSERVER_H_
6 #define COMPONENTS_BOOKMARKS_BROWSER_BASE_BOOKMARK_MODEL_OBSERVER_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "components/bookmarks/browser/bookmark_model_observer.h"
12 namespace bookmarks {
14 // Base class for a BookmarkModelObserver implementation. All mutations of the
15 // model funnel into the method BookmarkModelChanged.
16 class BaseBookmarkModelObserver : public BookmarkModelObserver {
17 public:
18 BaseBookmarkModelObserver() {}
20 virtual void BookmarkModelChanged() = 0;
22 // BookmarkModelObserver:
23 void BookmarkModelLoaded(BookmarkModel* model, bool ids_reassigned) override;
24 void BookmarkModelBeingDeleted(BookmarkModel* model) override;
25 void BookmarkNodeMoved(BookmarkModel* model,
26 const BookmarkNode* old_parent,
27 int old_index,
28 const BookmarkNode* new_parent,
29 int new_index) override;
30 void BookmarkNodeAdded(BookmarkModel* model,
31 const BookmarkNode* parent,
32 int index) override;
33 void BookmarkNodeRemoved(BookmarkModel* model,
34 const BookmarkNode* parent,
35 int old_index,
36 const BookmarkNode* node,
37 const std::set<GURL>& removed_urls) override;
38 void BookmarkAllUserNodesRemoved(BookmarkModel* model,
39 const std::set<GURL>& removed_urls) override;
40 void BookmarkNodeChanged(BookmarkModel* model,
41 const BookmarkNode* node) override;
42 void BookmarkNodeFaviconChanged(BookmarkModel* model,
43 const BookmarkNode* node) override;
44 void BookmarkNodeChildrenReordered(BookmarkModel* model,
45 const BookmarkNode* node) override;
47 protected:
48 ~BaseBookmarkModelObserver() override {}
50 private:
51 DISALLOW_COPY_AND_ASSIGN(BaseBookmarkModelObserver);
54 } // namespace bookmarks
56 #endif // COMPONENTS_BOOKMARKS_BROWSER_BASE_BOOKMARK_MODEL_OBSERVER_H_