Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_TITLED_URL_NODE_SORTER_H_ | |
| 6 #define COMPONENTS_BOOKMARKS_BROWSER_TITLED_URL_NODE_SORTER_H_ | |
| 7 | |
| 8 #include <set> | |
| 9 #include <vector> | |
| 10 | |
| 11 namespace bookmarks { | |
| 12 | |
| 13 class TitledUrlNode; | |
| 14 | |
| 15 class TitledUrlNodeSorter { | |
| 16 public: | |
| 17 using TitledUrlNodes = std::vector<const TitledUrlNode*>; | |
| 18 using TitledUrlNodeSet = std::set<const TitledUrlNode*>; | |
| 19 | |
| 20 // Constructs |sorted_nodes| by sorting the nodes in |matches|. | |
|
sky
2016/12/12 20:46:10
Constructs? Maybe 'Sorts |matches| in an implement
mattreynolds
2016/12/12 22:09:14
Done.
| |
| 21 virtual void SortMatches(const TitledUrlNodeSet& matches, | |
| 22 TitledUrlNodes* sorted_nodes) const = 0; | |
| 23 }; | |
|
sky
2016/12/12 20:46:10
Add public virtual destructor.
mattreynolds
2016/12/12 22:09:14
Done.
| |
| 24 | |
| 25 } // namespace bookmarks | |
| 26 | |
| 27 #endif // COMPONENTS_BOOKMARKS_BROWSER_TITLED_URL_NODE_SORTER_H_ | |
| OLD | NEW |