Chromium Code Reviews| Index: chrome/browser/search_engines/template_url.h |
| diff --git a/chrome/browser/search_engines/template_url.h b/chrome/browser/search_engines/template_url.h |
| index 1d874bb6019c8ac8858cfa35bc196e7d46143591..87b161e8584c7c9a45041f1f9f7ef2a93134a358 100644 |
| --- a/chrome/browser/search_engines/template_url.h |
| +++ b/chrome/browser/search_engines/template_url.h |
| @@ -50,7 +50,8 @@ class TemplateURLRef { |
| SUGGEST, |
| INSTANT, |
| IMAGE, |
| - INDEXED |
| + INDEXED, |
| + NEW_TAB |
|
samarth
2013/08/13 23:47:59
I think INDEXED should be last.
Jered
2013/08/14 15:41:49
Done.
|
| }; |
| // Type to store <content_type, post_data> pair for POST URLs. |
| @@ -408,6 +409,7 @@ struct TemplateURLData { |
| std::string suggestions_url; |
| std::string instant_url; |
| std::string image_url; |
| + std::string new_tab_url; |
| // The following post_params are comma-separated lists used to specify the |
| // post parameters for the corresponding URL. |
| @@ -525,6 +527,7 @@ class TemplateURL { |
| const std::string& suggestions_url() const { return data_.suggestions_url; } |
| const std::string& instant_url() const { return data_.instant_url; } |
| const std::string& image_url() const { return data_.image_url; } |
| + const std::string& new_tab_url() const { return data_.new_tab_url; } |
| const std::string& search_url_post_params() const { |
| return data_.search_url_post_params; |
| } |
| @@ -579,6 +582,7 @@ class TemplateURL { |
| } |
| const TemplateURLRef& instant_url_ref() const { return instant_url_ref_; } |
| const TemplateURLRef& image_url_ref() const { return image_url_ref_; } |
| + const TemplateURLRef& new_tab_url_ref() const { return new_tab_url_ref_; } |
| // Returns true if |url| supports replacement. |
| bool SupportsReplacement() const; |
| @@ -700,6 +704,7 @@ class TemplateURL { |
| TemplateURLRef suggestions_url_ref_; |
| TemplateURLRef instant_url_ref_; |
| TemplateURLRef image_url_ref_; |
| + TemplateURLRef new_tab_url_ref_; |
| // TODO(sky): Add date last parsed OSD file. |