| 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 #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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |