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

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

Issue 54203008: Store xsrf token received with psuggest results. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added test case Created 7 years, 2 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/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.
« no previous file with comments | « no previous file | chrome/browser/autocomplete/search_provider.cc » ('j') | chrome/browser/search_engines/template_url.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698