OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_ANDROID_PROVIDER_BOOKMARK_MODEL_OBSERVER_TASK_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_PROVIDER_BOOKMARK_MODEL_OBSERVER_TASK_H_ |
6 #define CHROME_BROWSER_ANDROID_PROVIDER_BOOKMARK_MODEL_OBSERVER_TASK_H_ | 6 #define CHROME_BROWSER_ANDROID_PROVIDER_BOOKMARK_MODEL_OBSERVER_TASK_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 "chrome/browser/bookmarks/bookmark_model_observer.h" | 10 #include "components/bookmarks/core/browser/bookmark_model_observer.h" |
11 | 11 |
12 // Base class for synchronous tasks that involve the bookmark model. | 12 // Base class for synchronous tasks that involve the bookmark model. |
13 // Ensures the model has been loaded before accessing it. | 13 // Ensures the model has been loaded before accessing it. |
14 // Must not be created from the UI thread. | 14 // Must not be created from the UI thread. |
15 class BookmarkModelTask { | 15 class BookmarkModelTask { |
16 public: | 16 public: |
17 explicit BookmarkModelTask(BookmarkModel* model); | 17 explicit BookmarkModelTask(BookmarkModel* model); |
18 BookmarkModel* model() const; | 18 BookmarkModel* model() const; |
19 | 19 |
20 private: | 20 private: |
(...skipping 30 matching lines...) Expand all Loading... |
51 virtual void BookmarkNodeFaviconChanged(BookmarkModel* model, | 51 virtual void BookmarkNodeFaviconChanged(BookmarkModel* model, |
52 const BookmarkNode* node) OVERRIDE; | 52 const BookmarkNode* node) OVERRIDE; |
53 virtual void BookmarkNodeChildrenReordered(BookmarkModel* model, | 53 virtual void BookmarkNodeChildrenReordered(BookmarkModel* model, |
54 const BookmarkNode* node) OVERRIDE; | 54 const BookmarkNode* node) OVERRIDE; |
55 | 55 |
56 private: | 56 private: |
57 DISALLOW_COPY_AND_ASSIGN(BookmarkModelObserverTask); | 57 DISALLOW_COPY_AND_ASSIGN(BookmarkModelObserverTask); |
58 }; | 58 }; |
59 | 59 |
60 #endif // CHROME_BROWSER_ANDROID_PROVIDER_BOOKMARK_MODEL_OBSERVER_TASK_H_ | 60 #endif // CHROME_BROWSER_ANDROID_PROVIDER_BOOKMARK_MODEL_OBSERVER_TASK_H_ |
OLD | NEW |