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

Side by Side Diff: chrome/browser/autocomplete/history_provider_util.h

Issue 333273009: Don't call AutocompleteInput::Parse() on a background thread, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch for landing Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/autocomplete/history_provider_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/history_provider_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698