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

Unified Diff: chrome/browser/autocomplete/autocomplete_result.h

Issue 14698028: Omnibox refactor. OmniboxController now holds an AutocompleteMatch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed failing browser tests. Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_result.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_result.h
diff --git a/chrome/browser/autocomplete/autocomplete_result.h b/chrome/browser/autocomplete/autocomplete_result.h
index 6ae7e390dc482251dd005c87684f0e6f1a2a61db..2da5320f811f07fc65971918964db0b11997fd6b 100644
--- a/chrome/browser/autocomplete/autocomplete_result.h
+++ b/chrome/browser/autocomplete/autocomplete_result.h
@@ -119,6 +119,11 @@ class AutocompleteResult {
void Validate() const;
#endif
+ // Compute the "alternate navigation URL" for a given match. This is obtained
+ // by interpreting the user input directly as a URL.
+ static GURL ComputeAlternateNavUrl(const AutocompleteInput& input,
+ const AutocompleteMatch& match);
+
private:
typedef std::map<AutocompleteProvider*, ACMatches> ProviderToMatches;
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_result.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698