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

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

Issue 11884037: InstantExtended: Bail on TemplateURLs with no espv. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 9660347e8af2abcf197751d06a17b1e45b839000..e9f8979246ae491c58411ce5230227eaca6fa86a 100644
--- a/chrome/browser/search_engines/template_url.h
+++ b/chrome/browser/search_engines/template_url.h
@@ -136,6 +136,10 @@ class TemplateURLRef {
// {google:baseURL} or {google:baseSuggestURL}.
bool HasGoogleBaseURLs() const;
+ // Returns true if this TemplateURLRef has a replacement term of
+ // {google:instantExtendedEnabledParameter}.
+ bool HasGoogleInstantExtendedParam() const;
+
// Use the pattern referred to by this TemplateURLRef to match the provided
// |url| and extract |search_terms| from it. Returns true if the pattern
// matches, even if |search_terms| is empty. Returns false and an empty
@@ -453,6 +457,10 @@ class TemplateURL {
// update the keyword to reflect the current Google base URL TLD.
bool IsGoogleSearchURLWithReplaceableKeyword() const;
+ // Returns true if the instant_url for this TemplateURL has a replacement for
+ // enabling Instant Extended.
+ bool SupportsInstantExtendedParam() const;
+
// Returns true if the keywords match or if
// IsGoogleSearchURLWithReplaceableKeyword() is true for both TemplateURLs.
bool HasSameKeywordAs(const TemplateURL& other) const;
« no previous file with comments | « no previous file | chrome/browser/search_engines/template_url.cc » ('j') | chrome/browser/search_engines/template_url.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698