| 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 #include "chrome/browser/android/provider/bookmark_model_observer_task.h" | 5 #include "chrome/browser/android/provider/bookmark_model_observer_task.h" |
| 6 | 6 |
| 7 #include "components/bookmarks/browser/bookmark_model.h" | 7 #include "components/bookmarks/browser/bookmark_model.h" |
| 8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
| 9 | 9 |
| 10 using bookmarks::BookmarkModel; | 10 using bookmarks::BookmarkModel; |
| 11 using bookmarks::BookmarkNode; |
| 11 using content::BrowserThread; | 12 using content::BrowserThread; |
| 12 | 13 |
| 13 BookmarkModelTask::BookmarkModelTask(BookmarkModel* model) | 14 BookmarkModelTask::BookmarkModelTask(BookmarkModel* model) |
| 14 : model_(model) { | 15 : model_(model) { |
| 15 // Ensure the initialization of the native bookmark model. | 16 // Ensure the initialization of the native bookmark model. |
| 16 DCHECK(!BrowserThread::CurrentlyOn(BrowserThread::UI)); | 17 DCHECK(!BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 17 DCHECK(model_); | 18 DCHECK(model_); |
| 18 model_->BlockTillLoaded(); | 19 model_->BlockTillLoaded(); |
| 19 } | 20 } |
| 20 | 21 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 68 |
| 68 void BookmarkModelObserverTask::BookmarkNodeFaviconChanged( | 69 void BookmarkModelObserverTask::BookmarkNodeFaviconChanged( |
| 69 BookmarkModel* model, | 70 BookmarkModel* model, |
| 70 const BookmarkNode* node) { | 71 const BookmarkNode* node) { |
| 71 } | 72 } |
| 72 | 73 |
| 73 void BookmarkModelObserverTask::BookmarkNodeChildrenReordered( | 74 void BookmarkModelObserverTask::BookmarkNodeChildrenReordered( |
| 74 BookmarkModel* model, | 75 BookmarkModel* model, |
| 75 const BookmarkNode* node) { | 76 const BookmarkNode* node) { |
| 76 } | 77 } |
| OLD | NEW |