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_QUERY_PARSER_QUERY_PARSER_H_ | 5 #ifndef COMPONENTS_QUERY_PARSER_QUERY_PARSER_H_ |
6 #define COMPONENTS_QUERY_PARSER_QUERY_PARSER_H_ | 6 #define COMPONENTS_QUERY_PARSER_QUERY_PARSER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/basictypes.h" | 12 #include "base/macros.h" |
11 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
12 #include "components/query_parser/snippet.h" | 14 #include "components/query_parser/snippet.h" |
13 | 15 |
14 namespace query_parser { | 16 namespace query_parser { |
15 | 17 |
16 class QueryNodeList; | 18 class QueryNodeList; |
17 | 19 |
18 // Used by HasMatchIn. | 20 // Used by HasMatchIn. |
19 struct QueryWord { | 21 struct QueryWord { |
20 // The work to match against. | 22 // The work to match against. |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 bool ParseQueryImpl(const base::string16& query, | 133 bool ParseQueryImpl(const base::string16& query, |
132 MatchingAlgorithm matching_algorithm, | 134 MatchingAlgorithm matching_algorithm, |
133 QueryNodeList* root); | 135 QueryNodeList* root); |
134 | 136 |
135 DISALLOW_COPY_AND_ASSIGN(QueryParser); | 137 DISALLOW_COPY_AND_ASSIGN(QueryParser); |
136 }; | 138 }; |
137 | 139 |
138 } // namespace query_parser | 140 } // namespace query_parser |
139 | 141 |
140 #endif // COMPONENTS_QUERY_PARSER_QUERY_PARSER_H_ | 142 #endif // COMPONENTS_QUERY_PARSER_QUERY_PARSER_H_ |
OLD | NEW |