#ifndef CHROME_BROWSER_EXTENSIONS_API_BOOKMARKS_BOOKMARK_API_HELPERS_H_
#define CHROME_BROWSER_EXTENSIONS_API_BOOKMARKS_BOOKMARK_API_HELPERS_H_
#include <string>
#include <vector>
#include "base/basictypes.h"
#include "chrome/common/extensions/api/bookmarks.h"
class BookmarkModel;
class BookmarkNode;
namespace extensions {
namespace bookmark_api_helpers {
api::bookmarks::BookmarkTreeNode* GetBookmarkTreeNode(
const BookmarkNode* node,
bool recurse,
bool only_folders);
void AddNode(const BookmarkNode* node,
std::vector<linked_ptr<api::bookmarks::BookmarkTreeNode> >* nodes,
bool recurse);
void AddNodeFoldersOnly(const BookmarkNode* node,
std::vector<linked_ptr<
api::bookmarks::BookmarkTreeNode> >* nodes,
bool recurse);
bool RemoveNode(BookmarkModel* model,
int64 id,
bool recursive,
std::string* error);
}
}
#endif