| 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 <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // When searching for an image, the URL of the original image. Callers | 124 // When searching for an image, the URL of the original image. Callers |
| 125 // should leave this empty for images specified via data: URLs. | 125 // should leave this empty for images specified via data: URLs. |
| 126 GURL image_url; | 126 GURL image_url; |
| 127 | 127 |
| 128 // When searching for an image, the original size of the image. | 128 // When searching for an image, the original size of the image. |
| 129 gfx::Size image_original_size; | 129 gfx::Size image_original_size; |
| 130 | 130 |
| 131 // If set, ReplaceSearchTerms() will append a param to the TemplateURLRef to | 131 // If set, ReplaceSearchTerms() will append a param to the TemplateURLRef to |
| 132 // update the search results page incrementally even if that is otherwise | 132 // update the search results page incrementally even if that is otherwise |
| 133 // disabled by google.com preferences. See comments on | 133 // disabled by google.com preferences. See comments on |
| 134 // SearchTermsData::ForceInstantResultsParam(). | 134 // chrome::ForceInstantResultsParam(). |
| 135 bool force_instant_results; | 135 bool force_instant_results; |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 TemplateURLRef(TemplateURL* owner, Type type); | 138 TemplateURLRef(TemplateURL* owner, Type type); |
| 139 TemplateURLRef(TemplateURL* owner, size_t index_in_owner); | 139 TemplateURLRef(TemplateURL* owner, size_t index_in_owner); |
| 140 ~TemplateURLRef(); | 140 ~TemplateURLRef(); |
| 141 | 141 |
| 142 // Returns the raw URL. None of the parameters will have been replaced. | 142 // Returns the raw URL. None of the parameters will have been replaced. |
| 143 std::string GetURL() const; | 143 std::string GetURL() const; |
| 144 | 144 |
| (...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 TemplateURLRef image_url_ref_; | 761 TemplateURLRef image_url_ref_; |
| 762 TemplateURLRef new_tab_url_ref_; | 762 TemplateURLRef new_tab_url_ref_; |
| 763 scoped_ptr<AssociatedExtensionInfo> extension_info_; | 763 scoped_ptr<AssociatedExtensionInfo> extension_info_; |
| 764 | 764 |
| 765 // TODO(sky): Add date last parsed OSD file. | 765 // TODO(sky): Add date last parsed OSD file. |
| 766 | 766 |
| 767 DISALLOW_COPY_AND_ASSIGN(TemplateURL); | 767 DISALLOW_COPY_AND_ASSIGN(TemplateURL); |
| 768 }; | 768 }; |
| 769 | 769 |
| 770 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ | 770 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ |
| OLD | NEW |