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_TITLE_MATCH_H_ | 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_TITLE_MATCH_H_ |
6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_TITLE_MATCH_H_ | 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_TITLE_MATCH_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <cstddef> | 10 #include <cstddef> |
9 #include <utility> | 11 #include <utility> |
10 #include <vector> | 12 #include <vector> |
11 | 13 |
12 namespace bookmarks { | 14 namespace bookmarks { |
13 | 15 |
14 class BookmarkNode; | 16 class BookmarkNode; |
15 | 17 |
16 struct BookmarkMatch { | 18 struct BookmarkMatch { |
17 // Each MatchPosition is the [begin, end) positions of a match within a | 19 // Each MatchPosition is the [begin, end) positions of a match within a |
(...skipping 21 matching lines...) Expand all Loading... |
39 // Location of the matching words in the title of the node. | 41 // Location of the matching words in the title of the node. |
40 MatchPositions title_match_positions; | 42 MatchPositions title_match_positions; |
41 | 43 |
42 // Location of the matching words in the URL of the node. | 44 // Location of the matching words in the URL of the node. |
43 MatchPositions url_match_positions; | 45 MatchPositions url_match_positions; |
44 }; | 46 }; |
45 | 47 |
46 } // namespace bookmarks | 48 } // namespace bookmarks |
47 | 49 |
48 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_TITLE_MATCH_H_ | 50 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_TITLE_MATCH_H_ |
OLD | NEW |