190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved. 290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// found in the LICENSE file. 490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)#ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_HISTORY_TYPES_H_ 690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)#define CHROME_BROWSER_UI_APP_LIST_SEARCH_HISTORY_TYPES_H_ 790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)#include <map> 990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)#include <string> 1090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 1190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)namespace app_list { 1290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 1390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// An enum that indicates how a search result id matches a query in history. 1490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)enum KnownResultType { 1590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) UNKNOWN_RESULT = 0, 1690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) PERFECT_PRIMARY, // Exactly the same query and in primary association 1790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) PERFECT_SECONDARY, // Exactly the same query and in secondary association 1890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) PREFIX_PRIMARY, // Query is a prefix and in primary association 1990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) PREFIX_SECONDARY, // Query is a prefix and in secondary association 2090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)}; 2190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 2290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// KnownResults maps a result id to a KnownResultType. 2390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)typedef std::map<std::string, KnownResultType> KnownResults; 2490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 2590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)} // namespace app_list 2690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 2790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)#endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_HISTORY_TYPES_H_ 28