Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4038)

Unified Diff: chrome/browser/ui/app_list/search/history_types.h

Issue 15875007: app_list: Search result launch history and boost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win7_aura unit_test Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « chrome/browser/ui/app_list/search/history_factory.cc ('k') | chrome/browser/ui/app_list/search/history_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698