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

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

Issue 10905292: Add API key to omnibox's suggest requests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Formatting. Created 8 years, 3 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 <vector> 9 #include <vector>
10 10
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 enum ReplacementType { 143 enum ReplacementType {
144 ENCODING, 144 ENCODING,
145 GOOGLE_ACCEPTED_SUGGESTION, 145 GOOGLE_ACCEPTED_SUGGESTION,
146 GOOGLE_ASSISTED_QUERY_STATS, 146 GOOGLE_ASSISTED_QUERY_STATS,
147 GOOGLE_BASE_URL, 147 GOOGLE_BASE_URL,
148 GOOGLE_BASE_SUGGEST_URL, 148 GOOGLE_BASE_SUGGEST_URL,
149 GOOGLE_INSTANT_ENABLED, 149 GOOGLE_INSTANT_ENABLED,
150 GOOGLE_ORIGINAL_QUERY_FOR_SUGGESTION, 150 GOOGLE_ORIGINAL_QUERY_FOR_SUGGESTION,
151 GOOGLE_RLZ, 151 GOOGLE_RLZ,
152 GOOGLE_SEARCH_FIELDTRIAL_GROUP, 152 GOOGLE_SEARCH_FIELDTRIAL_GROUP,
153 GOOGLE_SUGGEST_API_KEY,
153 GOOGLE_UNESCAPED_SEARCH_TERMS, 154 GOOGLE_UNESCAPED_SEARCH_TERMS,
154 LANGUAGE, 155 LANGUAGE,
155 SEARCH_TERMS, 156 SEARCH_TERMS,
156 }; 157 };
157 158
158 // Used to identify an element of the raw url that can be replaced. 159 // Used to identify an element of the raw url that can be replaced.
159 struct Replacement { 160 struct Replacement {
160 Replacement(ReplacementType type, size_t index) 161 Replacement(ReplacementType type, size_t index)
161 : type(type), index(index) {} 162 : type(type), index(index) {}
162 ReplacementType type; 163 ReplacementType type;
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 TemplateURLRef url_ref_; 443 TemplateURLRef url_ref_;
443 TemplateURLRef suggestions_url_ref_; 444 TemplateURLRef suggestions_url_ref_;
444 TemplateURLRef instant_url_ref_; 445 TemplateURLRef instant_url_ref_;
445 446
446 // TODO(sky): Add date last parsed OSD file. 447 // TODO(sky): Add date last parsed OSD file.
447 448
448 DISALLOW_COPY_AND_ASSIGN(TemplateURL); 449 DISALLOW_COPY_AND_ASSIGN(TemplateURL);
449 }; 450 };
450 451
451 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ 452 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/search_engines/template_url.cc » ('j') | chrome/browser/search_engines/template_url.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698