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

Side by Side Diff: chrome/browser/search_engines/template_url.h

Issue 314773002: Omnibox: Send Input Type to Suggest Server (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 struct SearchTermsArgs { 69 struct SearchTermsArgs {
70 explicit SearchTermsArgs(const base::string16& search_terms); 70 explicit SearchTermsArgs(const base::string16& search_terms);
71 ~SearchTermsArgs(); 71 ~SearchTermsArgs();
72 72
73 // The search terms (query). 73 // The search terms (query).
74 base::string16 search_terms; 74 base::string16 search_terms;
75 75
76 // The original (input) query. 76 // The original (input) query.
77 base::string16 original_query; 77 base::string16 original_query;
78 78
79 // The type the original input query was identified as.
80 AutocompleteInput::Type input_type;
81
79 // The optional assisted query stats, aka AQS, used for logging purposes. 82 // The optional assisted query stats, aka AQS, used for logging purposes.
80 // This string contains impressions of all autocomplete matches shown 83 // This string contains impressions of all autocomplete matches shown
81 // at the query submission time. For privacy reasons, we require the 84 // at the query submission time. For privacy reasons, we require the
82 // search provider to support HTTPS protocol in order to receive the AQS 85 // search provider to support HTTPS protocol in order to receive the AQS
83 // param. 86 // param.
84 // For more details, see http://goto.google.com/binary-clients-logging . 87 // For more details, see http://goto.google.com/binary-clients-logging .
85 std::string assisted_query_stats; 88 std::string assisted_query_stats;
86 89
87 // TODO: Remove along with "aq" CGI param. 90 // TODO: Remove along with "aq" CGI param.
88 int accepted_suggestion; 91 int accepted_suggestion;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 258
256 // Enumeration of the known types. 259 // Enumeration of the known types.
257 enum ReplacementType { 260 enum ReplacementType {
258 ENCODING, 261 ENCODING,
259 GOOGLE_ASSISTED_QUERY_STATS, 262 GOOGLE_ASSISTED_QUERY_STATS,
260 GOOGLE_BASE_URL, 263 GOOGLE_BASE_URL,
261 GOOGLE_BASE_SUGGEST_URL, 264 GOOGLE_BASE_SUGGEST_URL,
262 GOOGLE_BOOKMARK_BAR_PINNED, 265 GOOGLE_BOOKMARK_BAR_PINNED,
263 GOOGLE_CURRENT_PAGE_URL, 266 GOOGLE_CURRENT_PAGE_URL,
264 GOOGLE_CURSOR_POSITION, 267 GOOGLE_CURSOR_POSITION,
268 GOOGLE_FORCE_INSTANT_RESULTS,
Mark P 2014/06/03 19:25:31 I noticed this was out of alphabetical order.
265 GOOGLE_IMAGE_ORIGINAL_HEIGHT, 269 GOOGLE_IMAGE_ORIGINAL_HEIGHT,
266 GOOGLE_IMAGE_ORIGINAL_WIDTH, 270 GOOGLE_IMAGE_ORIGINAL_WIDTH,
267 GOOGLE_IMAGE_SEARCH_SOURCE, 271 GOOGLE_IMAGE_SEARCH_SOURCE,
268 GOOGLE_IMAGE_THUMBNAIL, 272 GOOGLE_IMAGE_THUMBNAIL,
269 GOOGLE_IMAGE_URL, 273 GOOGLE_IMAGE_URL,
270 GOOGLE_FORCE_INSTANT_RESULTS, 274 GOOGLE_INPUT_TYPE,
271 GOOGLE_INSTANT_EXTENDED_ENABLED, 275 GOOGLE_INSTANT_EXTENDED_ENABLED,
272 GOOGLE_NTP_IS_THEMED, 276 GOOGLE_NTP_IS_THEMED,
273 GOOGLE_OMNIBOX_START_MARGIN, 277 GOOGLE_OMNIBOX_START_MARGIN,
274 GOOGLE_ORIGINAL_QUERY_FOR_SUGGESTION, 278 GOOGLE_ORIGINAL_QUERY_FOR_SUGGESTION,
275 GOOGLE_PAGE_CLASSIFICATION, 279 GOOGLE_PAGE_CLASSIFICATION,
276 GOOGLE_RLZ, 280 GOOGLE_RLZ,
277 GOOGLE_SEARCH_CLIENT, 281 GOOGLE_SEARCH_CLIENT,
278 GOOGLE_SEARCH_FIELDTRIAL_GROUP, 282 GOOGLE_SEARCH_FIELDTRIAL_GROUP,
279 GOOGLE_SESSION_TOKEN, 283 GOOGLE_SESSION_TOKEN,
280 GOOGLE_SUGGEST_CLIENT, 284 GOOGLE_SUGGEST_CLIENT,
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 TemplateURLRef image_url_ref_; 781 TemplateURLRef image_url_ref_;
778 TemplateURLRef new_tab_url_ref_; 782 TemplateURLRef new_tab_url_ref_;
779 scoped_ptr<AssociatedExtensionInfo> extension_info_; 783 scoped_ptr<AssociatedExtensionInfo> extension_info_;
780 784
781 // TODO(sky): Add date last parsed OSD file. 785 // TODO(sky): Add date last parsed OSD file.
782 786
783 DISALLOW_COPY_AND_ASSIGN(TemplateURL); 787 DISALLOW_COPY_AND_ASSIGN(TemplateURL);
784 }; 788 };
785 789
786 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ 790 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698