| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_UTIL_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_UTIL_H_ |
| 6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_UTIL_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_UTIL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // will mislead the user into thinking the What You Typed match is what's | 43 // will mislead the user into thinking the What You Typed match is what's |
| 44 // selected.) | 44 // selected.) |
| 45 bool match_in_scheme; | 45 bool match_in_scheme; |
| 46 | 46 |
| 47 // A match after any scheme/"www.", if the user input could match at both | 47 // A match after any scheme/"www.", if the user input could match at both |
| 48 // locations. If the user types "w", an innermost match ("website.com") is | 48 // locations. If the user types "w", an innermost match ("website.com") is |
| 49 // better than a non-innermost match ("www.google.com"). If the user types | 49 // better than a non-innermost match ("www.google.com"). If the user types |
| 50 // "x", no scheme in our prefix list (or "www.") begins with x, so all | 50 // "x", no scheme in our prefix list (or "www.") begins with x, so all |
| 51 // matches are, vacuously, "innermost matches". | 51 // matches are, vacuously, "innermost matches". |
| 52 bool innermost_match; | 52 bool innermost_match; |
| 53 | |
| 54 // When sorting, all promoted matches should appear before all non-promoted | |
| 55 // matches, regardless of other properties of the match. | |
| 56 bool promoted; | |
| 57 }; | 53 }; |
| 58 typedef std::deque<HistoryMatch> HistoryMatches; | 54 typedef std::deque<HistoryMatch> HistoryMatches; |
| 59 | 55 |
| 60 } // namespace history | 56 } // namespace history |
| 61 | 57 |
| 62 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_UTIL_H_ | 58 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_UTIL_H_ |
| OLD | NEW |