Index: chrome/browser/ui/search/instant_page.h |
diff --git a/chrome/browser/ui/search/instant_page.h b/chrome/browser/ui/search/instant_page.h |
index 6bae2655ca53bbfffd6a6a4075cb571f7e0d283c..bd42e86c94d6556097d479baf49cd01ebedb63d8 100644 |
--- a/chrome/browser/ui/search/instant_page.h |
+++ b/chrome/browser/ui/search/instant_page.h |
@@ -18,6 +18,8 @@ |
class GURL; |
namespace content { |
+struct FrameNavigateParams; |
+struct LoadCommittedDetails; |
class WebContents; |
} |
@@ -91,6 +93,9 @@ class InstantPage : public content::WebContentsObserver { |
// Called when the SearchBox wants to undo all Most Visited deletions. |
virtual void UndoAllMostVisitedDeletions() = 0; |
+ // Called when the page fails to load for whatever reason. |
+ virtual void InstantPageLoadFailed(content::WebContents* contents) = 0; |
+ |
protected: |
virtual ~Delegate(); |
}; |
@@ -215,6 +220,16 @@ class InstantPage : public content::WebContentsObserver { |
const GURL& url, |
content::PageTransition transition_type, |
content::RenderViewHost* render_view_host) OVERRIDE; |
+ virtual void DidNavigateMainFrame( |
+ const content::LoadCommittedDetails& details, |
+ const content::FrameNavigateParams& params) OVERRIDE; |
+ virtual void DidFailProvisionalLoad( |
+ int64 frame_id, |
+ bool is_main_frame, |
+ const GURL& validated_url, |
+ int error_code, |
+ const string16& error_description, |
+ content::RenderViewHost* render_view_host) OVERRIDE; |
void OnSetSuggestions(int page_id, |
const std::vector<InstantSuggestion>& suggestions); |