| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ | 5 #ifndef COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ |
| 6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ | 6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 GOOGLE_RLZ, | 314 GOOGLE_RLZ, |
| 315 GOOGLE_SEARCH_CLIENT, | 315 GOOGLE_SEARCH_CLIENT, |
| 316 GOOGLE_SEARCH_FIELDTRIAL_GROUP, | 316 GOOGLE_SEARCH_FIELDTRIAL_GROUP, |
| 317 GOOGLE_SEARCH_VERSION, | 317 GOOGLE_SEARCH_VERSION, |
| 318 GOOGLE_SESSION_TOKEN, | 318 GOOGLE_SESSION_TOKEN, |
| 319 GOOGLE_SUGGEST_CLIENT, | 319 GOOGLE_SUGGEST_CLIENT, |
| 320 GOOGLE_SUGGEST_REQUEST_ID, | 320 GOOGLE_SUGGEST_REQUEST_ID, |
| 321 GOOGLE_UNESCAPED_SEARCH_TERMS, | 321 GOOGLE_UNESCAPED_SEARCH_TERMS, |
| 322 LANGUAGE, | 322 LANGUAGE, |
| 323 SEARCH_TERMS, | 323 SEARCH_TERMS, |
| 324 YANDEX_REFERRAL_ID, |
| 324 }; | 325 }; |
| 325 | 326 |
| 326 // Used to identify an element of the raw url that can be replaced. | 327 // Used to identify an element of the raw url that can be replaced. |
| 327 struct Replacement { | 328 struct Replacement { |
| 328 Replacement(ReplacementType type, size_t index) | 329 Replacement(ReplacementType type, size_t index) |
| 329 : type(type), index(index), is_post_param(false) {} | 330 : type(type), index(index), is_post_param(false) {} |
| 330 ReplacementType type; | 331 ReplacementType type; |
| 331 size_t index; | 332 size_t index; |
| 332 // Indicates the location in where the replacement is replaced. If | 333 // Indicates the location in where the replacement is replaced. If |
| 333 // |is_post_param| is false, |index| indicates the byte position in | 334 // |is_post_param| is false, |index| indicates the byte position in |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 | 745 |
| 745 // Caches the computed engine type across successive calls to GetEngineType(). | 746 // Caches the computed engine type across successive calls to GetEngineType(). |
| 746 mutable SearchEngineType engine_type_; | 747 mutable SearchEngineType engine_type_; |
| 747 | 748 |
| 748 // TODO(sky): Add date last parsed OSD file. | 749 // TODO(sky): Add date last parsed OSD file. |
| 749 | 750 |
| 750 DISALLOW_COPY_AND_ASSIGN(TemplateURL); | 751 DISALLOW_COPY_AND_ASSIGN(TemplateURL); |
| 751 }; | 752 }; |
| 752 | 753 |
| 753 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ | 754 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ |
| OLD | NEW |