Index: chrome/browser/autocomplete/search_provider.h |
diff --git a/chrome/browser/autocomplete/search_provider.h b/chrome/browser/autocomplete/search_provider.h |
index 30e601cebd44da85b30f91022f326a4ec04b063d..0bbbcb10e7dcdadda8421ecfa580ae72adb36cec 100644 |
--- a/chrome/browser/autocomplete/search_provider.h |
+++ b/chrome/browser/autocomplete/search_provider.h |
@@ -89,6 +89,7 @@ class SearchProvider : public AutocompleteProvider, |
const TemplateURL* template_url, |
const string16& query_string, |
const std::string& suggest_query_params, |
+ const std::string& xsrf_token, |
Peter Kasting
2013/10/31 23:54:46
Don't pass this in if no callers but SearchProvide
|
int accepted_suggestion, |
int omnibox_start_margin, |
bool append_extra_query_params); |
@@ -227,6 +228,7 @@ class SearchProvider : public AutocompleteProvider, |
const string16& match_contents, |
const string16& annotation, |
const std::string& suggest_query_params, |
+ const std::string& xsrf_token, |
bool from_keyword_provider, |
int relevance, |
bool relevance_from_server, |
@@ -239,6 +241,7 @@ class SearchProvider : public AutocompleteProvider, |
const std::string& suggest_query_params() const { |
return suggest_query_params_; |
} |
+ const std::string& xsrf_token() const { return xsrf_token_; } |
bool should_prefetch() const { return should_prefetch_; } |
// Result: |
@@ -262,6 +265,10 @@ class SearchProvider : public AutocompleteProvider, |
// Optional additional parameters to be added to the search URL. |
std::string suggest_query_params_; |
+ // Optional xsrf token provided with personalized suggestions and needed |
+ // for a deletion request. |
+ std::string xsrf_token_; |
+ |
// Should this result be prefetched? |
bool should_prefetch_; |
}; |
@@ -500,6 +507,7 @@ class SearchProvider : public AutocompleteProvider, |
const string16& query_string, |
int accepted_suggestion, |
const std::string& suggest_query_params, |
+ const std::string& xsrf_token, |
MatchMap* map); |
// Returns an AutocompleteMatch for a navigational suggestion. |