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 "components/bookmarks/core/browser/bookmark_model_observer.h" | 10 #include "components/bookmarks/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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 virtual void BookmarkNodeFaviconChanged(BookmarkModel* model, | 54 virtual void BookmarkNodeFaviconChanged(BookmarkModel* model, |
55 const BookmarkNode* node) OVERRIDE; | 55 const BookmarkNode* node) OVERRIDE; |
56 virtual void BookmarkNodeChildrenReordered(BookmarkModel* model, | 56 virtual void BookmarkNodeChildrenReordered(BookmarkModel* model, |
57 const BookmarkNode* node) OVERRIDE; | 57 const BookmarkNode* node) OVERRIDE; |
58 | 58 |
59 private: | 59 private: |
60 DISALLOW_COPY_AND_ASSIGN(BookmarkModelObserverTask); | 60 DISALLOW_COPY_AND_ASSIGN(BookmarkModelObserverTask); |
61 }; | 61 }; |
62 | 62 |
63 #endif // CHROME_BROWSER_ANDROID_PROVIDER_BOOKMARK_MODEL_OBSERVER_TASK_H_ | 63 #endif // CHROME_BROWSER_ANDROID_PROVIDER_BOOKMARK_MODEL_OBSERVER_TASK_H_ |
OLD | NEW |