| 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" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.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 : public BaseBookmarkModelObserver { | 14 class BookmarkModelLoadedObserver |
| 15 : public bookmarks::BaseBookmarkModelObserver { |
| 15 public: | 16 public: |
| 16 explicit BookmarkModelLoadedObserver(Profile* profile); | 17 explicit BookmarkModelLoadedObserver(Profile* profile); |
| 17 | 18 |
| 18 private: | 19 private: |
| 19 void BookmarkModelChanged() override; | 20 void BookmarkModelChanged() override; |
| 20 void BookmarkModelLoaded(BookmarkModel* model, bool ids_reassigned) override; | 21 void BookmarkModelLoaded(BookmarkModel* model, bool ids_reassigned) override; |
| 21 void BookmarkModelBeingDeleted(BookmarkModel* model) override; | 22 void BookmarkModelBeingDeleted(BookmarkModel* model) override; |
| 22 | 23 |
| 23 Profile* profile_; | 24 Profile* profile_; |
| 24 | 25 |
| 25 DISALLOW_COPY_AND_ASSIGN(BookmarkModelLoadedObserver); | 26 DISALLOW_COPY_AND_ASSIGN(BookmarkModelLoadedObserver); |
| 26 }; | 27 }; |
| 27 | 28 |
| 28 #endif // CHROME_BROWSER_PROFILES_BOOKMARK_MODEL_LOADED_OBSERVER_H_ | 29 #endif // CHROME_BROWSER_PROFILES_BOOKMARK_MODEL_LOADED_OBSERVER_H_ |
| OLD | NEW |