Index: chrome/renderer/net/net_error_helper.h |
diff --git a/chrome/renderer/net/net_error_helper.h b/chrome/renderer/net/net_error_helper.h |
index 9e9c3128834f1f18285c6f305684afff5a210cb1..f8b23ed0bf5c162eee8c4ce90071b551af439fa5 100644 |
--- a/chrome/renderer/net/net_error_helper.h |
+++ b/chrome/renderer/net/net_error_helper.h |
@@ -13,6 +13,7 @@ |
#include "chrome/renderer/net/net_error_helper_core.h" |
#include "content/public/renderer/render_frame_observer.h" |
#include "content/public/renderer/render_frame_observer_tracker.h" |
+#include "content/public/renderer/render_process_observer.h" |
class GURL; |
@@ -32,6 +33,7 @@ struct WebURLError; |
class NetErrorHelper |
: public content::RenderFrameObserver, |
public content::RenderFrameObserverTracker<NetErrorHelper>, |
+ public content::RenderProcessObserver, |
public NetErrorHelperCore::Delegate { |
public: |
explicit NetErrorHelper(content::RenderFrame* render_view); |
@@ -46,6 +48,9 @@ class NetErrorHelper |
// IPC::Listener implementation. |
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
+ // RenderProcessObserver implementation. |
+ virtual void NetworkStateChanged(bool online) OVERRIDE; |
+ |
// Examines |frame| and |error| to see if this is an error worthy of a DNS |
// probe. If it is, initializes |error_strings| based on |error|, |
// |is_failed_post|, and |locale| with suitable strings and returns true. |
@@ -59,6 +64,10 @@ class NetErrorHelper |
bool is_failed_post, |
std::string* error_html); |
+ // Returns whether a load for |url| in |frame| should have its error page |
+ // suppressed. |
+ bool ShouldSuppressErrorPage(blink::WebFrame* frame, const GURL& url); |
+ |
private: |
// NetErrorHelperCore::Delegate implementation: |
virtual void GenerateLocalizedErrorPage( |
@@ -74,6 +83,7 @@ class NetErrorHelper |
const GURL& navigation_correction_url, |
const std::string& navigation_correction_request_body) OVERRIDE; |
virtual void CancelFetchNavigationCorrections() OVERRIDE; |
+ virtual void ReloadPage() OVERRIDE; |
void OnNetErrorInfo(int status); |
void OnSetNavigationCorrectionInfo(const GURL& navigation_correction_url, |