Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1333)

Unified Diff: chrome/browser/search_engines/template_url.h

Issue 22945004: InstantExtended: Add new_tab_url to TemplateURL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..0a06d03a15bcdae7616ccb8992dfa827de5e33d9 100644
--- a/chrome/browser/search_engines/template_url.h
+++ b/chrome/browser/search_engines/template_url.h
@@ -50,6 +50,7 @@ class TemplateURLRef {
SUGGEST,
INSTANT,
IMAGE,
+ NEW_TAB,
INDEXED
};
@@ -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.
« no previous file with comments | « chrome/browser/search_engines/prepopulated_engines_schema.json ('k') | chrome/browser/search_engines/template_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698