Fix build break
[chromium-blink-merge.git] / chrome / browser / android / provider / bookmark_model_observer_task.cc
blob634e04a445abd3ac622ca343ba6a3742e339dfc3
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
3 // found in the LICENSE file.
5 #include "chrome/browser/android/provider/bookmark_model_observer_task.h"
7 #include "chrome/browser/bookmarks/bookmark_model.h"
8 #include "content/public/browser/browser_thread.h"
10 using content::BrowserThread;
12 BookmarkModelTask::BookmarkModelTask(BookmarkModel* model)
13 : model_(model) {
14 // Ensure the initialization of the native bookmark model.
15 DCHECK(!BrowserThread::CurrentlyOn(BrowserThread::UI));
16 DCHECK(model_);
17 model_->BlockTillLoaded();
20 BookmarkModel* BookmarkModelTask::model() const {
21 return model_;
24 BookmarkModelObserverTask::BookmarkModelObserverTask(
25 BookmarkModel* bookmark_model)
26 : BookmarkModelTask(bookmark_model) {
27 model()->AddObserver(this);
30 BookmarkModelObserverTask::~BookmarkModelObserverTask() {
31 model()->RemoveObserver(this);
34 void BookmarkModelObserverTask::Loaded(BookmarkModel* model,
35 bool ids_reassigned) {
38 void BookmarkModelObserverTask::BookmarkNodeMoved(
39 BookmarkModel* model,
40 const BookmarkNode* old_parent,
41 int old_index,
42 const BookmarkNode* new_parent,
43 int new_index) {
46 void BookmarkModelObserverTask::BookmarkNodeAdded(BookmarkModel* model,
47 const BookmarkNode* parent,
48 int index) {
51 void BookmarkModelObserverTask::BookmarkNodeRemoved(BookmarkModel* model,
52 const BookmarkNode* parent,
53 int old_index,
54 const BookmarkNode* node) {
57 void BookmarkModelObserverTask::BookmarkAllNodesRemoved(BookmarkModel* model) {}
59 void BookmarkModelObserverTask::BookmarkNodeChanged(BookmarkModel* model,
60 const BookmarkNode* node) {}
62 void BookmarkModelObserverTask::BookmarkNodeFaviconChanged(
63 BookmarkModel* model,
64 const BookmarkNode* node) {
67 void BookmarkModelObserverTask::BookmarkNodeChildrenReordered(
68 BookmarkModel* model,
69 const BookmarkNode* node) {