| Index: chrome/browser/ui/app_list/search/history_types.h
|
| diff --git a/chrome/browser/ui/app_list/search/history_types.h b/chrome/browser/ui/app_list/search/history_types.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..aff81a2fcb80a403813e7f01b5c064430ecb5a73
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/app_list/search/history_types.h
|
| @@ -0,0 +1,27 @@
|
| +// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_HISTORY_TYPES_H_
|
| +#define CHROME_BROWSER_UI_APP_LIST_SEARCH_HISTORY_TYPES_H_
|
| +
|
| +#include <map>
|
| +#include <string>
|
| +
|
| +namespace app_list {
|
| +
|
| +// An enum that indicates how a search result id matches a query in history.
|
| +enum KnownResultType {
|
| + UNKNOWN_RESULT = 0,
|
| + PERFECT_PRIMARY, // Exactly the same query and in primary association
|
| + PERFECT_SECONDARY, // Exactly the same query and in secondary association
|
| + PREFIX_PRIMARY, // Query is a prefix and in primary association
|
| + PREFIX_SECONDARY, // Query is a prefix and in secondary association
|
| +};
|
| +
|
| +// KnownResults maps a result id to a KnownResultType.
|
| +typedef std::map<std::string, KnownResultType> KnownResults;
|
| +
|
| +} // namespace app_list
|
| +
|
| +#endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_HISTORY_TYPES_H_
|
|
|