summaryrefslogtreecommitdiffstats
path: root/chrome/browser/instant/instant_controller.h
diff options
context:
space:
mode:
authorshishir@chromium.org <shishir@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-04 21:27:56 +0000
committershishir@chromium.org <shishir@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-04 21:27:56 +0000
commit30889c2b4576c4c613b57b279184eb522a97684f (patch)
tree0da8d2d6ac4d86f4cbeefd18727d1d187114097a /chrome/browser/instant/instant_controller.h
parent7ccb08c489010679739680adb84fd60d288ee20b (diff)
downloadchromium_src-30889c2b4576c4c613b57b279184eb522a97684f.zip
chromium_src-30889c2b4576c4c613b57b279184eb522a97684f.tar.gz
chromium_src-30889c2b4576c4c613b57b279184eb522a97684f.tar.bz2
Instant Extended: Fallback to local preview if the remote instant page is not ready on user input.
Reverts back to the remote URL when the preview is not showing and the omnibox looses focus. BUG=159289 Review URL: https://chromiumcodereview.appspot.com/11833043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180520 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/instant/instant_controller.h')
-rw-r--r--chrome/browser/instant/instant_controller.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/instant/instant_controller.h b/chrome/browser/instant/instant_controller.h
index 19acbb4..01b2623 100644
--- a/chrome/browser/instant/instant_controller.h
+++ b/chrome/browser/instant/instant_controller.h
@@ -176,6 +176,11 @@ class InstantController {
// Invoked by InstantLoader when the instant page is about to navigate.
void InstantLoaderAboutToNavigateMainFrame(const GURL& url);
+ // Invoked by InstantLoader when it's underlying RenderView is created.
+ // TODO(shishir): We assume that the WebContent's current RenderViewHost is
+ // the RenderViewHost being created which is not always true. Fix this.
+ void InstantLoaderRenderViewCreated();
+
// Invoked by the InstantLoader when the instant page wants to navigate to
// the speicfied URL.
void NavigateToURL(const GURL& url, content::PageTransition transition);
@@ -217,6 +222,11 @@ class InstantController {
// deleted and recreated. Else the refresh is skipped.
void OnStaleLoader();
+ // If the |loader_| being used is in fallback mode, it will be switched back
+ // to the remote loader if the loader is not showing and the omnibox does not
+ // have focus.
+ void MaybeSwitchToRemoteLoader();
+
// If the active tab is an Instant search results page, sets |instant_tab_| to
// point to it. Else, deletes any existing |instant_tab_|.
void ResetInstantTab();