OLD | NEW |
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_BOOKMARKS_BROWSER_BOOKMARK_UTILS_H_ | 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UTILS_H_ |
6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UTILS_H_ | 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // why it was escaped to begin with). | 129 // why it was escaped to begin with). |
130 base::string16 CleanUpUrlForMatching( | 130 base::string16 CleanUpUrlForMatching( |
131 const GURL& gurl, | 131 const GURL& gurl, |
132 const std::string& languages, | 132 const std::string& languages, |
133 base::OffsetAdjuster::Adjustments* adjustments); | 133 base::OffsetAdjuster::Adjustments* adjustments); |
134 | 134 |
135 // Returns the lower-cased title, possibly truncated if the original title | 135 // Returns the lower-cased title, possibly truncated if the original title |
136 // is overly-long. | 136 // is overly-long. |
137 base::string16 CleanUpTitleForMatching(const base::string16& title); | 137 base::string16 CleanUpTitleForMatching(const base::string16& title); |
138 | 138 |
| 139 // Returns true if there is at least one managed node in the |list|. |
| 140 bool HasManaged(BookmarkModel* model, |
| 141 const std::vector<const BookmarkNode*>& list); |
| 142 |
139 } // namespace bookmark_utils | 143 } // namespace bookmark_utils |
140 | 144 |
141 // Returns the node with |id|, or NULL if there is no node with |id|. | 145 // Returns the node with |id|, or NULL if there is no node with |id|. |
142 const BookmarkNode* GetBookmarkNodeByID(const BookmarkModel* model, int64 id); | 146 const BookmarkNode* GetBookmarkNodeByID(const BookmarkModel* model, int64 id); |
143 | 147 |
144 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UTILS_H_ | 148 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UTILS_H_ |
OLD | NEW |