| OLD | NEW |
| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // Enumeration of the known types. | 153 // Enumeration of the known types. |
| 154 enum ReplacementType { | 154 enum ReplacementType { |
| 155 ENCODING, | 155 ENCODING, |
| 156 GOOGLE_ACCEPTED_SUGGESTION, | 156 GOOGLE_ACCEPTED_SUGGESTION, |
| 157 GOOGLE_ASSISTED_QUERY_STATS, | 157 GOOGLE_ASSISTED_QUERY_STATS, |
| 158 GOOGLE_BASE_URL, | 158 GOOGLE_BASE_URL, |
| 159 GOOGLE_BASE_SUGGEST_URL, | 159 GOOGLE_BASE_SUGGEST_URL, |
| 160 GOOGLE_INSTANT_ENABLED, | 160 GOOGLE_INSTANT_ENABLED, |
| 161 GOOGLE_ORIGINAL_QUERY_FOR_SUGGESTION, | 161 GOOGLE_ORIGINAL_QUERY_FOR_SUGGESTION, |
| 162 GOOGLE_RLZ, | 162 GOOGLE_RLZ, |
| 163 GOOGLE_SEARCH_CLIENT, |
| 163 GOOGLE_SEARCH_FIELDTRIAL_GROUP, | 164 GOOGLE_SEARCH_FIELDTRIAL_GROUP, |
| 164 GOOGLE_UNESCAPED_SEARCH_TERMS, | 165 GOOGLE_UNESCAPED_SEARCH_TERMS, |
| 165 LANGUAGE, | 166 LANGUAGE, |
| 166 SEARCH_TERMS, | 167 SEARCH_TERMS, |
| 167 }; | 168 }; |
| 168 | 169 |
| 169 // Used to identify an element of the raw url that can be replaced. | 170 // Used to identify an element of the raw url that can be replaced. |
| 170 struct Replacement { | 171 struct Replacement { |
| 171 Replacement(ReplacementType type, size_t index) | 172 Replacement(ReplacementType type, size_t index) |
| 172 : type(type), index(index) {} | 173 : type(type), index(index) {} |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 TemplateURLRef url_ref_; | 488 TemplateURLRef url_ref_; |
| 488 TemplateURLRef suggestions_url_ref_; | 489 TemplateURLRef suggestions_url_ref_; |
| 489 TemplateURLRef instant_url_ref_; | 490 TemplateURLRef instant_url_ref_; |
| 490 | 491 |
| 491 // TODO(sky): Add date last parsed OSD file. | 492 // TODO(sky): Add date last parsed OSD file. |
| 492 | 493 |
| 493 DISALLOW_COPY_AND_ASSIGN(TemplateURL); | 494 DISALLOW_COPY_AND_ASSIGN(TemplateURL); |
| 494 }; | 495 }; |
| 495 | 496 |
| 496 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ | 497 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ |
| OLD | NEW |