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

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

Issue 18878007: Omnibox: Make the Controller Reorder Matches for Inlining (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Peter's comments Created 7 years, 5 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
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_AUTOCOMPLETE_RESULT_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_RESULT_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_RESULT_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_RESULT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 // The "alternate navigation URL", if any, for this result set. This is a URL 158 // The "alternate navigation URL", if any, for this result set. This is a URL
159 // to try offering as a navigational option in case the user navigated to the 159 // to try offering as a navigational option in case the user navigated to the
160 // URL of the default match but intended something else. For example, if the 160 // URL of the default match but intended something else. For example, if the
161 // user's local intranet contains site "foo", and the user types "foo", we 161 // user's local intranet contains site "foo", and the user types "foo", we
162 // default to searching for "foo" when the user may have meant to navigate 162 // default to searching for "foo" when the user may have meant to navigate
163 // there. In cases like this, the default match will point to the "search for 163 // there. In cases like this, the default match will point to the "search for
164 // 'foo'" result, and this will contain "http://foo/". 164 // 'foo'" result, and this will contain "http://foo/".
165 GURL alternate_nav_url_; 165 GURL alternate_nav_url_;
166 166
167 // True if the functions here should reorder matches as necessary to make
168 // the top result something that's allowed to be a default match.
169 bool reorder_for_legal_default_match_;
170
167 DISALLOW_COPY_AND_ASSIGN(AutocompleteResult); 171 DISALLOW_COPY_AND_ASSIGN(AutocompleteResult);
168 }; 172 };
169 173
170 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_RESULT_H_ 174 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_RESULT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698