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_INDEX_H_ | 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_INDEX_H_ |
6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_INDEX_H_ | 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_INDEX_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
15 #include "components/query_parser/query_parser.h" | 15 #include "components/query_parser/query_parser.h" |
16 | 16 |
17 class BookmarkNode; | |
18 | |
19 namespace bookmarks { | 17 namespace bookmarks { |
20 | 18 |
21 class BookmarkClient; | 19 class BookmarkClient; |
| 20 class BookmarkNode; |
22 struct BookmarkMatch; | 21 struct BookmarkMatch; |
23 | 22 |
24 // BookmarkIndex maintains an index of the titles and URLs of bookmarks for | 23 // BookmarkIndex maintains an index of the titles and URLs of bookmarks for |
25 // quick look up. BookmarkIndex is owned and maintained by BookmarkModel, you | 24 // quick look up. BookmarkIndex is owned and maintained by BookmarkModel, you |
26 // shouldn't need to interact directly with BookmarkIndex. | 25 // shouldn't need to interact directly with BookmarkIndex. |
27 // | 26 // |
28 // BookmarkIndex maintains the index (index_) as a map of sets. The map (type | 27 // BookmarkIndex maintains the index (index_) as a map of sets. The map (type |
29 // Index) maps from a lower case string to the set (type NodeSet) of | 28 // Index) maps from a lower case string to the set (type NodeSet) of |
30 // BookmarkNodes that contain that string in their title or URL. | 29 // BookmarkNodes that contain that string in their title or URL. |
31 class BookmarkIndex { | 30 class BookmarkIndex { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 88 |
90 // Languages used to help parse IDNs in URLs for the bookmark index. | 89 // Languages used to help parse IDNs in URLs for the bookmark index. |
91 const std::string languages_; | 90 const std::string languages_; |
92 | 91 |
93 DISALLOW_COPY_AND_ASSIGN(BookmarkIndex); | 92 DISALLOW_COPY_AND_ASSIGN(BookmarkIndex); |
94 }; | 93 }; |
95 | 94 |
96 } // namespace bookmarks | 95 } // namespace bookmarks |
97 | 96 |
98 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_INDEX_H_ | 97 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_INDEX_H_ |
OLD | NEW |