This source file includes following definitions.
- model
- BookmarkModelLoaded
- BookmarkNodeMoved
- BookmarkNodeAdded
- BookmarkNodeRemoved
- BookmarkAllNodesRemoved
- BookmarkNodeChanged
- BookmarkNodeFaviconChanged
- BookmarkNodeChildrenReordered
#include "chrome/browser/android/provider/bookmark_model_observer_task.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "content/public/browser/browser_thread.h"
using content::BrowserThread;
BookmarkModelTask::BookmarkModelTask(BookmarkModel* model)
: model_(model) {
DCHECK(!BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(model_);
model_->BlockTillLoaded();
}
BookmarkModel* BookmarkModelTask::model() const {
return model_;
}
BookmarkModelObserverTask::BookmarkModelObserverTask(
BookmarkModel* bookmark_model)
: BookmarkModelTask(bookmark_model) {
model()->AddObserver(this);
}
BookmarkModelObserverTask::~BookmarkModelObserverTask() {
model()->RemoveObserver(this);
}
void BookmarkModelObserverTask::BookmarkModelLoaded(BookmarkModel* model,
bool ids_reassigned) {}
void BookmarkModelObserverTask::BookmarkNodeMoved(
BookmarkModel* model,
const BookmarkNode* old_parent,
int old_index,
const BookmarkNode* new_parent,
int new_index) {
}
void BookmarkModelObserverTask::BookmarkNodeAdded(BookmarkModel* model,
const BookmarkNode* parent,
int index) {
}
void BookmarkModelObserverTask::BookmarkNodeRemoved(BookmarkModel* model,
const BookmarkNode* parent,
int old_index,
const BookmarkNode* node) {
}
void BookmarkModelObserverTask::BookmarkAllNodesRemoved(BookmarkModel* model) {}
void BookmarkModelObserverTask::BookmarkNodeChanged(BookmarkModel* model,
const BookmarkNode* node) {}
void BookmarkModelObserverTask::BookmarkNodeFaviconChanged(
BookmarkModel* model,
const BookmarkNode* node) {
}
void BookmarkModelObserverTask::BookmarkNodeChildrenReordered(
BookmarkModel* model,
const BookmarkNode* node) {
}