| 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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 bool safe_for_autoreplace() const { return data_.safe_for_autoreplace; } | 574 bool safe_for_autoreplace() const { return data_.safe_for_autoreplace; } |
| 575 | 575 |
| 576 const std::vector<std::string>& input_encodings() const { | 576 const std::vector<std::string>& input_encodings() const { |
| 577 return data_.input_encodings; | 577 return data_.input_encodings; |
| 578 } | 578 } |
| 579 | 579 |
| 580 TemplateURLID id() const { return data_.id; } | 580 TemplateURLID id() const { return data_.id; } |
| 581 | 581 |
| 582 base::Time date_created() const { return data_.date_created; } | 582 base::Time date_created() const { return data_.date_created; } |
| 583 base::Time last_modified() const { return data_.last_modified; } | 583 base::Time last_modified() const { return data_.last_modified; } |
| 584 base::Time last_visited() const { return data_.last_visited; } |
| 584 | 585 |
| 585 bool created_by_policy() const { return data_.created_by_policy; } | 586 bool created_by_policy() const { return data_.created_by_policy; } |
| 586 | 587 |
| 587 int usage_count() const { return data_.usage_count; } | 588 int usage_count() const { return data_.usage_count; } |
| 588 | 589 |
| 589 int prepopulate_id() const { return data_.prepopulate_id; } | 590 int prepopulate_id() const { return data_.prepopulate_id; } |
| 590 | 591 |
| 591 const std::string& sync_guid() const { return data_.sync_guid; } | 592 const std::string& sync_guid() const { return data_.sync_guid; } |
| 592 | 593 |
| 593 // TODO(beaudoin): Rename this when renaming HasSearchTermsReplacementKey(). | 594 // TODO(beaudoin): Rename this when renaming HasSearchTermsReplacementKey(). |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 | 754 |
| 754 // Caches the computed engine type across successive calls to GetEngineType(). | 755 // Caches the computed engine type across successive calls to GetEngineType(). |
| 755 mutable SearchEngineType engine_type_; | 756 mutable SearchEngineType engine_type_; |
| 756 | 757 |
| 757 // TODO(sky): Add date last parsed OSD file. | 758 // TODO(sky): Add date last parsed OSD file. |
| 758 | 759 |
| 759 DISALLOW_COPY_AND_ASSIGN(TemplateURL); | 760 DISALLOW_COPY_AND_ASSIGN(TemplateURL); |
| 760 }; | 761 }; |
| 761 | 762 |
| 762 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ | 763 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ |
| OLD | NEW |