OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 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" |
| 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 |
| 18 // inline_autocompletion. |fixed_up_input_text| is used in that way as well; |
| 19 // it's passed separately so this function doesn't have to compute it. |
| 20 AutocompleteMatch TitledUrlMatchToAutocompleteMatch( |
| 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 |