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 <string> | 10 #include <string> |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // TemplateURLRef::ReplaceSearchTerms methods. By default, only search_terms | 72 // TemplateURLRef::ReplaceSearchTerms methods. By default, only search_terms |
73 // is required and is passed in the constructor. | 73 // is required and is passed in the constructor. |
74 struct SearchTermsArgs { | 74 struct SearchTermsArgs { |
75 explicit SearchTermsArgs(const base::string16& search_terms); | 75 explicit SearchTermsArgs(const base::string16& search_terms); |
76 ~SearchTermsArgs(); | 76 ~SearchTermsArgs(); |
77 | 77 |
78 struct ContextualSearchParams { | 78 struct ContextualSearchParams { |
79 ContextualSearchParams(); | 79 ContextualSearchParams(); |
80 // Used when the content is sent in the HTTP header instead of as CGI | 80 // Used when the content is sent in the HTTP header instead of as CGI |
81 // parameters. | 81 // parameters. |
82 // TODO(jeremycho): Remove base_page_url and selection parameters once | 82 // TODO(donnd): Remove base_page_url and selection parameters once |
83 // they are logged from the HTTP header. | 83 // they are logged from the HTTP header. |
84 ContextualSearchParams(const int version, | 84 ContextualSearchParams(const int version, |
85 const std::string& selection, | 85 const std::string& selection, |
86 const std::string& base_page_url, | 86 const std::string& base_page_url, |
87 const bool resolve); | 87 const bool resolve); |
88 // TODO(jeremycho): Delete constructor once Clank no longer depends on it. | 88 // TODO(donnd): Delete constructor once Clank, iOS, and tests no |
| 89 // longer depend on it. |
89 ContextualSearchParams(const int version, | 90 ContextualSearchParams(const int version, |
90 const size_t start, | 91 const size_t start, |
91 const size_t end, | 92 const size_t end, |
92 const std::string& selection, | 93 const std::string& selection, |
93 const std::string& content, | 94 const std::string& content, |
94 const std::string& base_page_url, | 95 const std::string& base_page_url, |
95 const std::string& encoding, | 96 const std::string& encoding, |
96 const bool resolve); | 97 const bool resolve); |
97 ~ContextualSearchParams(); | 98 ~ContextualSearchParams(); |
98 | 99 |
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 TemplateURLRef new_tab_url_ref_; | 746 TemplateURLRef new_tab_url_ref_; |
746 TemplateURLRef contextual_search_url_ref_; | 747 TemplateURLRef contextual_search_url_ref_; |
747 scoped_ptr<AssociatedExtensionInfo> extension_info_; | 748 scoped_ptr<AssociatedExtensionInfo> extension_info_; |
748 | 749 |
749 // TODO(sky): Add date last parsed OSD file. | 750 // TODO(sky): Add date last parsed OSD file. |
750 | 751 |
751 DISALLOW_COPY_AND_ASSIGN(TemplateURL); | 752 DISALLOW_COPY_AND_ASSIGN(TemplateURL); |
752 }; | 753 }; |
753 | 754 |
754 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ | 755 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ |
OLD | NEW |