| 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/core/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 : public BaseBookmarkModelObserver { |
| 15 public: | 15 public: |
| 16 explicit BookmarkModelLoadedObserver(Profile* profile); | 16 explicit BookmarkModelLoadedObserver(Profile* profile); |
| 17 | 17 |
| 18 private: | 18 private: |
| 19 virtual void BookmarkModelChanged() OVERRIDE; | 19 virtual void BookmarkModelChanged() OVERRIDE; |
| 20 virtual void BookmarkModelLoaded(BookmarkModel* model, | 20 virtual void BookmarkModelLoaded(BookmarkModel* model, |
| 21 bool ids_reassigned) OVERRIDE; | 21 bool ids_reassigned) OVERRIDE; |
| 22 virtual void BookmarkModelBeingDeleted(BookmarkModel* model) OVERRIDE; | 22 virtual void BookmarkModelBeingDeleted(BookmarkModel* model) OVERRIDE; |
| 23 | 23 |
| 24 Profile* profile_; | 24 Profile* profile_; |
| 25 | 25 |
| 26 DISALLOW_COPY_AND_ASSIGN(BookmarkModelLoadedObserver); | 26 DISALLOW_COPY_AND_ASSIGN(BookmarkModelLoadedObserver); |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 #endif // CHROME_BROWSER_PROFILES_BOOKMARK_MODEL_LOADED_OBSERVER_H_ | 29 #endif // CHROME_BROWSER_PROFILES_BOOKMARK_MODEL_LOADED_OBSERVER_H_ |
| OLD | NEW |