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. 4 5#ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_HISTORY_TYPES_H_ 6#define CHROME_BROWSER_UI_APP_LIST_SEARCH_HISTORY_TYPES_H_ 7 8#include <map> 9#include <string> 10 11namespace app_list { 12 13// An enum that indicates how a search result id matches a query in history. 14enum KnownResultType { 15 UNKNOWN_RESULT = 0, 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 20}; 21 22// KnownResults maps a result id to a KnownResultType. 23typedef std::map<std::string, KnownResultType> KnownResults; 24 25} // namespace app_list 26 27#endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_HISTORY_TYPES_H_ 28