Index: chrome/browser/extensions/api/web_navigation/web_navigation_api.h |
diff --git a/chrome/browser/extensions/api/web_navigation/web_navigation_api.h b/chrome/browser/extensions/api/web_navigation/web_navigation_api.h |
index f88eeb19c914f049ebecd89f3cc9f7f69b5917df..b73b7189444621e1d9d237f8ff2ea62a0ff0d3bd 100644 |
--- a/chrome/browser/extensions/api/web_navigation/web_navigation_api.h |
+++ b/chrome/browser/extensions/api/web_navigation/web_navigation_api.h |
@@ -40,6 +40,8 @@ class WebNavigationTabObserver : public content::NotificationObserver, |
return navigation_state_; |
} |
+ content::RenderViewHost* GetRenderViewHostInProcess(int process_id) const; |
+ |
// content::NotificationObserver implementation. |
virtual void Observe(int type, |
const content::NotificationSource& source, |
@@ -97,6 +99,12 @@ class WebNavigationTabObserver : public content::NotificationObserver, |
bool IsReferenceFragmentNavigation(FrameNavigationState::FrameID frame_id, |
const GURL& url); |
+ // Creates and sends onErrorOccurred events for all on-going navigations. If |
+ // |render_view_host| is non-NULL, only generates events for frames in this |
+ // render view host. |
+ void SendErrorEvents(content::WebContents* web_contents, |
+ content::RenderViewHost* render_view_host); |
+ |
// Tracks the state of the frames we are sending events for. |
FrameNavigationState navigation_state_; |