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

Side by Side Diff: chrome/browser/search_engines/template_url.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, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_
6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ 6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 // Which omnibox the user used to type the prefix. 102 // Which omnibox the user used to type the prefix.
103 AutocompleteInput::PageClassification page_classification; 103 AutocompleteInput::PageClassification page_classification;
104 104
105 // True for searches issued with the bookmark bar pref set to shown. 105 // True for searches issued with the bookmark bar pref set to shown.
106 bool bookmark_bar_pinned; 106 bool bookmark_bar_pinned;
107 107
108 // Additional query params provided by the suggest server. 108 // Additional query params provided by the suggest server.
109 std::string suggest_query_params; 109 std::string suggest_query_params;
110 110
111 // Xsrf token parameter needed to send a delete request to suggest server.
112 std::string xsrf_token;
Peter Kasting 2013/10/31 23:54:46 This is the wrong place to store this. Since Repl
113
111 // If set, ReplaceSearchTerms() will automatically append any extra query 114 // If set, ReplaceSearchTerms() will automatically append any extra query
112 // params specified via the --extra-search-query-params command-line 115 // params specified via the --extra-search-query-params command-line
113 // argument. Generally, this should be set when dealing with the search or 116 // argument. Generally, this should be set when dealing with the search or
114 // instant TemplateURLRefs of the default search engine and the caller cares 117 // instant TemplateURLRefs of the default search engine and the caller cares
115 // about the query portion of the URL. Since neither TemplateURLRef nor 118 // about the query portion of the URL. Since neither TemplateURLRef nor
116 // indeed TemplateURL know whether a TemplateURL is the default search 119 // indeed TemplateURL know whether a TemplateURL is the default search
117 // engine, callers instead must set this manually. 120 // engine, callers instead must set this manually.
118 bool append_extra_query_params; 121 bool append_extra_query_params;
119 122
120 // The raw content of an image thumbnail that will be used as a query for 123 // The raw content of an image thumbnail that will be used as a query for
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 TemplateURLRef image_url_ref_; 763 TemplateURLRef image_url_ref_;
761 TemplateURLRef new_tab_url_ref_; 764 TemplateURLRef new_tab_url_ref_;
762 scoped_ptr<AssociatedExtensionInfo> extension_info_; 765 scoped_ptr<AssociatedExtensionInfo> extension_info_;
763 766
764 // TODO(sky): Add date last parsed OSD file. 767 // TODO(sky): Add date last parsed OSD file.
765 768
766 DISALLOW_COPY_AND_ASSIGN(TemplateURL); 769 DISALLOW_COPY_AND_ASSIGN(TemplateURL);
767 }; 770 };
768 771
769 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ 772 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698