// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_QUERY_PARSER_QUERY_PARSER_H_ #define COMPONENTS_QUERY_PARSER_QUERY_PARSER_H_ #include <stddef.h> #include <memory> #include <string> #include <vector> #include "components/query_parser/snippet.h" namespace query_parser { class QueryNodeList; // Used by HasMatchIn. struct QueryWord { … }; enum class MatchingAlgorithm { … }; QueryWordVector; // `QueryNode` is used by `QueryParser` to represent the elements that // constitute a query. While `QueryNode` is exposed by way of `ParseQuery`, it // really isn't meant for external usage. class QueryNode { … }; QueryNodeVector; // This class is used to parse queries entered into the history search into more // normalized queries that can be passed to the SQLite backend. class QueryParser { … }; } // namespace query_parser #endif // COMPONENTS_QUERY_PARSER_QUERY_PARSER_H_