Chromium Code Reviews| 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 c61ed0f41aae8700189c92f7aae4f40b68aefffc..5474984a725a93d7e31a856c4f458355ef98e117 100644 |
| --- a/chrome/renderer/net/net_error_helper.h |
| +++ b/chrome/renderer/net/net_error_helper.h |
| @@ -11,8 +11,10 @@ |
| #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; |
| +class MockableOneShotTimer; |
| namespace content { |
| class ResourceFetcher; |
| @@ -30,6 +32,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); |
| @@ -44,6 +47,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. |
| @@ -57,6 +63,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); |
|
mmenke
2014/03/11 20:07:54
nit: Space after *
Elly Fong-Jones
2014/03/12 15:08:58
Done.
|
| + |
| private: |
| // NetErrorHelperCore::Delegate implementation: |
| virtual void GenerateLocalizedErrorPage(const blink::WebURLError& error, |
| @@ -68,6 +78,7 @@ class NetErrorHelper |
| bool is_failed_post) OVERRIDE; |
| virtual void FetchErrorPage(const GURL& url) OVERRIDE; |
| virtual void CancelFetchErrorPage() OVERRIDE; |
| + virtual void ReloadPage() OVERRIDE; |
| void OnNetErrorInfo(int status); |
| void OnSetAltErrorPageURL(const GURL& alternate_error_page_url); |