summaryrefslogtreecommitdiffstats
path: root/chrome/browser/instant/instant_client.h
diff options
context:
space:
mode:
authorshishir@chromium.org <shishir@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-07 08:19:15 +0000
committershishir@chromium.org <shishir@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-07 08:19:15 +0000
commita09a7546f7535a6909886c473e1555d59b9ed88e (patch)
tree7f9f61e3c7b699ebc60a2b5c5d011280e6ef72d5 /chrome/browser/instant/instant_client.h
parentf9285be839ca1efd30a3d4ddb27e479bd364639b (diff)
downloadchromium_src-a09a7546f7535a6909886c473e1555d59b9ed88e.zip
chromium_src-a09a7546f7535a6909886c473e1555d59b9ed88e.tar.gz
chromium_src-a09a7546f7535a6909886c473e1555d59b9ed88e.tar.bz2
Recreate InstantLoader when its underlying RenderView dies.
Currently the new loader created is not updated with the previous status and the omnibox input stays the same as before the crash. If the user changes the omnibox input in any way, instant will showup as expected. BUG=159327 Review URL: https://chromiumcodereview.appspot.com/11412180 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171723 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/instant/instant_client.h')
-rw-r--r--chrome/browser/instant/instant_client.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/instant/instant_client.h b/chrome/browser/instant/instant_client.h
index 95ab909..c22a0a6 100644
--- a/chrome/browser/instant/instant_client.h
+++ b/chrome/browser/instant/instant_client.h
@@ -58,6 +58,9 @@ class InstantClient : public content::WebContentsObserver {
// strokes.
virtual void StopCapturingKeyStrokes() = 0;
+ // Called when the underlying RenderView crashes.
+ virtual void RenderViewGone() = 0;
+
protected:
virtual ~Delegate();
};
@@ -123,6 +126,7 @@ class InstantClient : public content::WebContentsObserver {
bool is_main_frame,
content::RenderViewHost* render_view_host) OVERRIDE;
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+ virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE;
void SetSuggestions(int page_id,
const std::vector<InstantSuggestion>& suggestions);