diff options
author | tfarina <tfarina@chromium.org> | 2015-02-04 14:10:50 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-04 22:11:54 +0000 |
commit | a665b308ea4c6c7e75f56a4c614d279c0d25e64a (patch) | |
tree | e2064c59c0b66758670b02b2b2984a518d79d219 /components/enhanced_bookmarks/enhanced_bookmark_utils.h | |
parent | 6c46080bac609fe3df0701b403709559c8ff4b4e (diff) | |
download | chromium_src-a665b308ea4c6c7e75f56a4c614d279c0d25e64a.zip chromium_src-a665b308ea4c6c7e75f56a4c614d279c0d25e64a.tar.gz chromium_src-a665b308ea4c6c7e75f56a4c614d279c0d25e64a.tar.bz2 |
bookmarks: Move BookmarkNode into 'bookmarks' namespace.
BUG=370433
TEST=unit_tests, components_unittests
R=sky@chromium.org
TBR=joaodasilva@chromium.org (for policy)
Review URL: https://codereview.chromium.org/865163003
Cr-Commit-Position: refs/heads/master@{#314653}
Diffstat (limited to 'components/enhanced_bookmarks/enhanced_bookmark_utils.h')
-rw-r--r-- | components/enhanced_bookmarks/enhanced_bookmark_utils.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/components/enhanced_bookmarks/enhanced_bookmark_utils.h b/components/enhanced_bookmarks/enhanced_bookmark_utils.h index dc9cf3c..40b4a0b 100644 --- a/components/enhanced_bookmarks/enhanced_bookmark_utils.h +++ b/components/enhanced_bookmarks/enhanced_bookmark_utils.h @@ -9,40 +9,41 @@ #include <string> #include <vector> -class BookmarkNode; - namespace bookmarks { class BookmarkModel; +class BookmarkNode; } namespace enhanced_bookmarks { // The vector is sorted in place. // All of the bookmarks in |nodes| must be urls. -void SortBookmarksByName(std::vector<const BookmarkNode*>& nodes); +void SortBookmarksByName(std::vector<const bookmarks::BookmarkNode*>& nodes); // Returns the permanent nodes whose url children are considered uncategorized // and whose folder children should be shown in the bookmark menu. // |model| must be loaded. -std::vector<const BookmarkNode*> PrimaryPermanentNodes( +std::vector<const bookmarks::BookmarkNode*> PrimaryPermanentNodes( bookmarks::BookmarkModel* model); // Returns an unsorted vector of folders that are considered to be at the "root" // level of the bookmark hierarchy. Functionally, this means all direct // descendants of PrimaryPermanentNodes. -std::vector<const BookmarkNode*> RootLevelFolders( +std::vector<const bookmarks::BookmarkNode*> RootLevelFolders( bookmarks::BookmarkModel* model); // Returns whether |node| is a primary permanent node in the sense of // |PrimaryPermanentNodes|. -bool IsPrimaryPermanentNode(const BookmarkNode* node, +bool IsPrimaryPermanentNode(const bookmarks::BookmarkNode* node, bookmarks::BookmarkModel* model); // Returns the root level folder in which this node is directly, or indirectly // via subfolders, located. -const BookmarkNode* RootLevelFolderForNode(const BookmarkNode* node, - bookmarks::BookmarkModel* model); +const bookmarks::BookmarkNode* RootLevelFolderForNode( + const bookmarks::BookmarkNode* node, + bookmarks::BookmarkModel* model); } // namespace enhanced_bookmarks #endif // COMPONENTS_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_UTILS_H_ + |