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

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

Issue 17022004: Replace --google-base-suggest-url and --instant-url with --google-base-url. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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
Index: chrome/browser/autocomplete/keyword_provider.h
===================================================================
--- chrome/browser/autocomplete/keyword_provider.h (revision 208572)
+++ chrome/browser/autocomplete/keyword_provider.h (working copy)
@@ -83,7 +83,7 @@
// keyword, returns that keyword; returns the empty string otherwise.
string16 GetKeywordForText(const string16& text) const;
- // Creates a fully marked-up AutocompleteMatch for a specific keyword.
+ // Creates a fully marked-up AutocompleteMatch for |keyword|.
AutocompleteMatch CreateAutocompleteMatch(const string16& text,
const string16& keyword,
const AutocompleteInput& input);
@@ -110,12 +110,6 @@
string16* keyword,
string16* remaining_input);
- // Fills in the "destination_url" and "contents" fields of |match| with the
- // provided user input and keyword data.
- static void FillInURLAndContents(const string16& remaining_input,
- const TemplateURL* element,
- AutocompleteMatch* match);
-
// Determines the relevance for some input, given its type, whether the user
// typed the complete keyword, and whether the user is in "prefer keyword
// matches" mode, and whether the keyword supports replacement.
@@ -129,13 +123,18 @@
// Creates a fully marked-up AutocompleteMatch from the user's input.
// If |relevance| is negative, calculate a relevance based on heuristics.
- AutocompleteMatch CreateAutocompleteMatch(TemplateURLService* model,
- const string16& keyword,
+ AutocompleteMatch CreateAutocompleteMatch(const TemplateURL* template_url,
const AutocompleteInput& input,
size_t prefix_length,
const string16& remaining_input,
int relevance);
+ // Fills in the "destination_url" and "contents" fields of |match| with the
+ // provided user input and keyword data.
+ void FillInURLAndContents(const string16& remaining_input,
+ const TemplateURL* element,
+ AutocompleteMatch* match) const;
+
void EnterExtensionKeywordMode(const std::string& extension_id);
void MaybeEndExtensionKeywordMode();
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_provider_unittest.cc ('k') | chrome/browser/autocomplete/keyword_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698