Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: components/enhanced_bookmarks/enhanced_bookmark_utils.h

Issue 456793002: Fixing the enhanced bookmark namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | components/enhanced_bookmarks/enhanced_bookmark_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef COMPONENTS_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_UTILS_H_ 5 #ifndef COMPONENTS_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_UTILS_H_
6 #define COMPONENTS_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_UTILS_H_ 6 #define COMPONENTS_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_UTILS_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 class BookmarkModel; 12 class BookmarkModel;
13 class BookmarkNode; 13 class BookmarkNode;
14 14
15 namespace enhanced_bookmark_utils { 15 namespace enhanced_bookmark {
blundell 2014/08/12 14:04:15 enhanced_bookmarks
noyau (Ping after 24h) 2014/08/27 09:35:39 Done.
16 16
17 // Returns an ordered vector of bookmarks that are urls that match |query|. 17 // Returns an ordered vector of bookmarks that are urls that match |query|.
18 // |query| must be UTF8 encoded. 18 // |query| must be UTF8 encoded.
19 std::vector<const BookmarkNode*> FindBookmarksWithQuery( 19 std::vector<const BookmarkNode*> FindBookmarksWithQuery(
20 BookmarkModel* bookmark_model, 20 BookmarkModel* bookmark_model,
21 const std::string& query); 21 const std::string& query);
22 22
23 // The vector is sorted in place. 23 // The vector is sorted in place.
24 // All of the bookmarks in |nodes| must be urls. 24 // All of the bookmarks in |nodes| must be urls.
25 void SortBookmarksByName(std::vector<const BookmarkNode*>& nodes); 25 void SortBookmarksByName(std::vector<const BookmarkNode*>& nodes);
(...skipping 11 matching lines...) Expand all
37 37
38 // Returns whether |node| is a primary permanent node in the sense of 38 // Returns whether |node| is a primary permanent node in the sense of
39 // |PrimaryPermanentNodes|. 39 // |PrimaryPermanentNodes|.
40 bool IsPrimaryPermanentNode(const BookmarkNode* node, BookmarkModel* model); 40 bool IsPrimaryPermanentNode(const BookmarkNode* node, BookmarkModel* model);
41 41
42 // Returns the root level folder in which this node is directly, or indirectly 42 // Returns the root level folder in which this node is directly, or indirectly
43 // via subfolders, located. 43 // via subfolders, located.
44 const BookmarkNode* RootLevelFolderForNode(const BookmarkNode* node, 44 const BookmarkNode* RootLevelFolderForNode(const BookmarkNode* node,
45 BookmarkModel* model); 45 BookmarkModel* model);
46 46
47 } // namespace enhanced_bookmark_utils 47 } // namespace enhanced_bookmark
48 48
49 #endif // COMPONENTS_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_UTILS_H_ 49 #endif // COMPONENTS_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_UTILS_H_
OLDNEW
« no previous file with comments | « no previous file | components/enhanced_bookmarks/enhanced_bookmark_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698