| Index: components/omnibox/browser/autocomplete_provider_utils.h
|
| diff --git a/components/omnibox/browser/autocomplete_provider_utils.h b/components/omnibox/browser/autocomplete_provider_utils.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1be91dac3ab1d50b0a7852bdf26b5e81ae84c722
|
| --- /dev/null
|
| +++ b/components/omnibox/browser/autocomplete_provider_utils.h
|
| @@ -0,0 +1,29 @@
|
| +// Copyright (c) 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_UTILS_H_
|
| +#define COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_UTILS_H_
|
| +
|
| +#include "components/bookmarks/browser/titled_url_match.h"
|
| +#include "components/omnibox/browser/autocomplete_match_type.h"
|
| +
|
| +class AutocompleteInput;
|
| +class AutocompleteProvider;
|
| +class AutocompleteSchemeClassifier;
|
| +struct AutocompleteMatch;
|
| +
|
| +// Compose an AutocompleteMatch based on |match| that has the match's URL and
|
| +// the page title and type |type|. |input| is used to compute the match's
|
| +// inline_autocompletion. |fixed_up_input_text| is used in that way as well;
|
| +// it's passed separately so this function doesn't have to compute it.
|
| +AutocompleteMatch TitledUrlMatchToAutocompleteMatch(
|
| + AutocompleteProvider* provider,
|
| + const AutocompleteSchemeClassifier& scheme_classifier,
|
| + const AutocompleteInput& input,
|
| + const base::string16& fixed_up_input_text,
|
| + const bookmarks::TitledUrlMatch& match,
|
| + AutocompleteMatchType::Type type,
|
| + int relevance);
|
| +
|
| +#endif // COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_UTILS_H_
|
|
|