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

Unified Diff: trunk/src/chrome/browser/search/search.h

Issue 135903002: Revert 244407 "InstantExtended: remove dead code related to the ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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: trunk/src/chrome/browser/search/search.h
===================================================================
--- trunk/src/chrome/browser/search/search.h (revision 244428)
+++ trunk/src/chrome/browser/search/search.h (working copy)
@@ -154,6 +154,13 @@
// match. See comments on ShouldHideTopMatch in autocomplete_result.h.
bool ShouldHideTopVerbatimMatch();
+// Returns true if the cacheable NTP should be shown and false if not.
+// Exposed for testing.
+bool ShouldUseCacheableNTP();
+
+// Returns true if the Instant NTP should be shown and false if not.
+bool ShouldShowInstantNTP();
+
// Returns when we should show a search button in the omnibox. This may be any
// of several values, some of which depend on whether the underlying state of
// the page would normally be to perform search term replacement; see also
@@ -187,6 +194,13 @@
// and hence different processes.
GURL GetEffectiveURLForInstant(const GURL& url, Profile* profile);
+// Returns the staleness timeout (in seconds) that should be used to refresh the
+// InstantLoader.
+int GetInstantLoaderStalenessTimeoutSec();
+
+// Returns true if |contents| corresponds to a preloaded instant extended NTP.
+bool IsPreloadedInstantExtendedNTP(const content::WebContents* contents);
+
// Rewrites |url| if
// 1. |url| is kChromeUINewTabURL,
// 2. InstantExtended is enabled, and
« no previous file with comments | « trunk/src/chrome/browser/search/instant_service_unittest.cc ('k') | trunk/src/chrome/browser/search/search.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698