OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PROFILES_BOOKMARK_MODEL_LOADED_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_BOOKMARK_MODEL_LOADED_OBSERVER_H_ |
6 #define CHROME_BROWSER_PROFILES_BOOKMARK_MODEL_LOADED_OBSERVER_H_ | 6 #define CHROME_BROWSER_PROFILES_BOOKMARK_MODEL_LOADED_OBSERVER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
10 #include "components/bookmarks/browser/base_bookmark_model_observer.h" | 10 #include "components/bookmarks/browser/base_bookmark_model_observer.h" |
11 | 11 |
12 class Profile; | 12 class Profile; |
13 | 13 |
14 class BookmarkModelLoadedObserver | 14 class BookmarkModelLoadedObserver |
15 : public bookmarks::BaseBookmarkModelObserver { | 15 : public bookmarks::BaseBookmarkModelObserver { |
16 public: | 16 public: |
17 explicit BookmarkModelLoadedObserver(Profile* profile); | 17 explicit BookmarkModelLoadedObserver(Profile* profile); |
18 | 18 |
19 private: | 19 private: |
20 void BookmarkModelChanged() override; | 20 void BookmarkModelChanged() override; |
21 void BookmarkModelLoaded(bookmarks::BookmarkModel* model, | 21 void BookmarkModelLoaded(bookmarks::BookmarkModel* model, |
22 bool ids_reassigned) override; | 22 bool ids_reassigned) override; |
23 void BookmarkModelBeingDeleted(bookmarks::BookmarkModel* model) override; | 23 void BookmarkModelBeingDeleted(bookmarks::BookmarkModel* model) override; |
24 | 24 |
25 Profile* profile_; | 25 Profile* profile_; |
26 | 26 |
27 DISALLOW_COPY_AND_ASSIGN(BookmarkModelLoadedObserver); | 27 DISALLOW_COPY_AND_ASSIGN(BookmarkModelLoadedObserver); |
28 }; | 28 }; |
29 | 29 |
30 #endif // CHROME_BROWSER_PROFILES_BOOKMARK_MODEL_LOADED_OBSERVER_H_ | 30 #endif // CHROME_BROWSER_PROFILES_BOOKMARK_MODEL_LOADED_OBSERVER_H_ |
OLD | NEW |