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

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

Issue 10353017: Unlaunch the HIDDEN mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed @sky's comment; fixed tests Created 8 years, 7 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 FRIEND_TEST_ALL_PREFIXES(TemplateURLTest, ParseURLTwoParameters); 125 FRIEND_TEST_ALL_PREFIXES(TemplateURLTest, ParseURLTwoParameters);
126 FRIEND_TEST_ALL_PREFIXES(TemplateURLTest, ParseURLNestedParameter); 126 FRIEND_TEST_ALL_PREFIXES(TemplateURLTest, ParseURLNestedParameter);
127 127
128 // Enumeration of the known types. 128 // Enumeration of the known types.
129 enum ReplacementType { 129 enum ReplacementType {
130 ENCODING, 130 ENCODING,
131 GOOGLE_ACCEPTED_SUGGESTION, 131 GOOGLE_ACCEPTED_SUGGESTION,
132 GOOGLE_BASE_URL, 132 GOOGLE_BASE_URL,
133 GOOGLE_BASE_SUGGEST_URL, 133 GOOGLE_BASE_SUGGEST_URL,
134 GOOGLE_INSTANT_ENABLED, 134 GOOGLE_INSTANT_ENABLED,
135 GOOGLE_INSTANT_FIELD_TRIAL_GROUP,
136 GOOGLE_ORIGINAL_QUERY_FOR_SUGGESTION, 135 GOOGLE_ORIGINAL_QUERY_FOR_SUGGESTION,
137 GOOGLE_RLZ, 136 GOOGLE_RLZ,
138 GOOGLE_SEARCH_FIELDTRIAL_GROUP, 137 GOOGLE_SEARCH_FIELDTRIAL_GROUP,
139 GOOGLE_UNESCAPED_SEARCH_TERMS, 138 GOOGLE_UNESCAPED_SEARCH_TERMS,
140 LANGUAGE, 139 LANGUAGE,
141 SEARCH_TERMS, 140 SEARCH_TERMS,
142 }; 141 };
143 142
144 // Used to identify an element of the raw url that can be replaced. 143 // Used to identify an element of the raw url that can be replaced.
145 struct Replacement { 144 struct Replacement {
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 Profile* profile_; 447 Profile* profile_;
449 TemplateURLData data_; 448 TemplateURLData data_;
450 TemplateURLRef url_ref_; 449 TemplateURLRef url_ref_;
451 TemplateURLRef suggestions_url_ref_; 450 TemplateURLRef suggestions_url_ref_;
452 TemplateURLRef instant_url_ref_; 451 TemplateURLRef instant_url_ref_;
453 452
454 // TODO(sky): Add date last parsed OSD file. 453 // TODO(sky): Add date last parsed OSD file.
455 }; 454 };
456 455
457 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ 456 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_
OLDNEW
« no previous file with comments | « chrome/browser/search_engines/search_terms_data.cc ('k') | chrome/browser/search_engines/template_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698