Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
|
Mark P
2016/12/22 05:24:31
This file seems awkwardly named for what's it doin
Mark P
2016/12/23 22:38:49
Perhaps titled_url_match_utils, if nothing else se
mattreynolds
2017/01/04 00:58:02
I didn't want to add components/bookmarks dependen
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_UTILS_H_ | |
| 6 #define COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_UTILS_H_ | |
| 7 | |
| 8 #include "components/bookmarks/browser/titled_url_match.h" | |
| 9 #include "components/omnibox/browser/autocomplete_match_type.h" | |
|
Mark P
2016/12/23 22:38:49
Include something for string16?
mattreynolds
2017/01/04 00:58:02
Done.
| |
| 10 | |
| 11 class AutocompleteInput; | |
| 12 class AutocompleteProvider; | |
| 13 class AutocompleteSchemeClassifier; | |
| 14 struct AutocompleteMatch; | |
| 15 | |
| 16 // Compose an AutocompleteMatch based on |match| that has the match's URL and | |
| 17 // the page title and type |type|. |input| is used to compute the match's | |
|
Mark P
2016/12/23 22:38:49
Please add a sentence about the variable |relevanc
mattreynolds
2017/01/04 00:58:02
Done.
| |
| 18 // inline_autocompletion. |fixed_up_input_text| is used in that way as well; | |
|
Mark P
2016/12/23 22:38:49
By the way, I'm okay with the current comment that
mattreynolds
2017/01/04 00:58:02
Acknowledged.
| |
| 19 // it's passed separately so this function doesn't have to compute it. | |
| 20 AutocompleteMatch TitledUrlMatchToAutocompleteMatch( | |
|
Mark P
2016/12/23 22:38:49
Given this (now-revised) description, I think matc
mattreynolds
2017/01/04 00:58:02
Done.
| |
| 21 AutocompleteProvider* provider, | |
| 22 const AutocompleteSchemeClassifier& scheme_classifier, | |
| 23 const AutocompleteInput& input, | |
| 24 const base::string16& fixed_up_input_text, | |
| 25 const bookmarks::TitledUrlMatch& match, | |
| 26 AutocompleteMatchType::Type type, | |
| 27 int relevance); | |
| 28 | |
| 29 #endif // COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_UTILS_H_ | |
| OLD | NEW |