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

Side by Side Diff: components/omnibox/browser/verbatim_match.h

Issue 2738003002: Add title to current page in zero suggest. (Closed)
Patch Set: Added description as a param to VerbatimMatchForURL Created 3 years, 8 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_OMNIBOX_BROWSER_VERBATIM_MATCH_H_ 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_VERBATIM_MATCH_H_
6 #define COMPONENTS_OMNIBOX_BROWSER_VERBATIM_MATCH_H_ 6 #define COMPONENTS_OMNIBOX_BROWSER_VERBATIM_MATCH_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "components/omnibox/browser/autocomplete_input.h" 9 #include "components/omnibox/browser/autocomplete_input.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
11 11
12 struct AutocompleteMatch; 12 struct AutocompleteMatch;
13 class AutocompleteProviderClient; 13 class AutocompleteProviderClient;
14 class HistoryURLProvider; 14 class HistoryURLProvider;
15 15
16 // Returns a verbatim match for input.text() with a relevance of 16 // Returns a verbatim match for input.text() with a relevance of
17 // |verbatim_relevance|. If |verbatim_relevance| is negative then a default 17 // |verbatim_relevance|. If |verbatim_relevance| is negative then a default
18 // value is used. If the desired |destination_url| is already known and a 18 // value is used. If the desired |destination_url| is already known and a
19 // |history_url_provider| is also provided, this may be more efficient (see 19 // |history_url_provider| is also provided, this may be more efficient (see
20 // implementation for details) than the default code path. 20 // implementation for details) than the default code path.
Mark P 2017/04/13 21:12:28 Update this comment, perhaps replace "this may be
gcomanici 2017/04/18 18:52:53 Done.
21 // input.text() must not be empty. 21 // input.text() must not be empty.
22 AutocompleteMatch VerbatimMatchForURL( 22 AutocompleteMatch VerbatimMatchForURL(
23 AutocompleteProviderClient* client, 23 AutocompleteProviderClient* client,
24 const AutocompleteInput& input, 24 const AutocompleteInput& input,
25 const GURL& destination_url, 25 const GURL& destination_url,
26 const base::string16& destination_description,
26 HistoryURLProvider* history_url_provider, 27 HistoryURLProvider* history_url_provider,
27 int verbatim_relevance); 28 int verbatim_relevance);
28 29
29 #endif // COMPONENTS_OMNIBOX_BROWSER_VERBATIM_MATCH_H_ 30 #endif // COMPONENTS_OMNIBOX_BROWSER_VERBATIM_MATCH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698