1 // Copyright 2013 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.
5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_HISTORY_TYPES_H_
6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_HISTORY_TYPES_H_
13 // An enum that indicates how a search result id matches a query in history.
14 enum KnownResultType {
16 PERFECT_PRIMARY, // Exactly the same query and in primary association
17 PERFECT_SECONDARY, // Exactly the same query and in secondary association
18 PREFIX_PRIMARY, // Query is a prefix and in primary association
19 PREFIX_SECONDARY, // Query is a prefix and in secondary association
22 // KnownResults maps a result id to a KnownResultType.
23 typedef std::map<std::string, KnownResultType> KnownResults;
25 } // namespace app_list
27 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_HISTORY_TYPES_H_