| 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 935cd5df1f241e8ede567f23b3483f0d8d3a6fac..01d900e5d643f460ef86886aed684d56b8d581b1 100644
|
| --- a/chrome/renderer/net/net_error_helper.h
|
| +++ b/chrome/renderer/net/net_error_helper.h
|
| @@ -6,6 +6,7 @@
|
| #define CHROME_RENDERER_NET_NET_ERROR_HELPER_H_
|
|
|
| #include <string>
|
| +#include <vector>
|
|
|
| #include "base/macros.h"
|
| #include "base/memory/scoped_ptr.h"
|
| @@ -83,19 +84,21 @@ class NetErrorHelper
|
| const blink::WebURLError& error,
|
| bool is_failed_post,
|
| bool can_use_local_diagnostics_service,
|
| - bool has_offline_pages,
|
| + error_page::OfflinePageStatus offline_page_status,
|
| scoped_ptr<error_page::ErrorPageParams> params,
|
| bool* reload_button_shown,
|
| bool* show_saved_copy_button_shown,
|
| bool* show_cached_copy_button_shown,
|
| - bool* show_saved_pages_button_shown,
|
| + bool* show_offline_pages_button_shown,
|
| + bool* show_offline_copy_button_shown,
|
| std::string* html) const override;
|
| void LoadErrorPage(const std::string& html, const GURL& failed_url) override;
|
| void EnablePageHelperFunctions() override;
|
| - void UpdateErrorPage(const blink::WebURLError& error,
|
| - bool is_failed_post,
|
| - bool can_use_local_diagnostics_service,
|
| - bool has_offline_pages) override;
|
| + void UpdateErrorPage(
|
| + const blink::WebURLError& error,
|
| + bool is_failed_post,
|
| + bool can_use_local_diagnostics_service,
|
| + error_page::OfflinePageStatus offline_page_status) override;
|
| void FetchNavigationCorrections(
|
| const GURL& navigation_correction_url,
|
| const std::string& navigation_correction_request_body) override;
|
| @@ -106,6 +109,7 @@ class NetErrorHelper
|
| void LoadPageFromCache(const GURL& page_url) override;
|
| void DiagnoseError(const GURL& page_url) override;
|
| void ShowOfflinePages() override;
|
| + void LoadOfflineCopy(const GURL& page_url) override;
|
|
|
| void OnNetErrorInfo(int status);
|
| void OnSetCanShowNetworkDiagnosticsDialog(
|
| @@ -121,9 +125,12 @@ class NetErrorHelper
|
|
|
| void OnTrackingRequestComplete(const blink::WebURLResponse& response,
|
| const std::string& data);
|
| +
|
| #if defined(OS_ANDROID)
|
| - void OnSetHasOfflinePages(bool has_offline_pages);
|
| -#endif
|
| + // Called to set the status of the offline pages that will be used to decide
|
| + // if offline related button will be provided in the error page.
|
| + void OnSetOfflinePageInfo(const std::vector<GURL>& offline_page_urls);
|
| +#endif // defined(OS_ANDROID)
|
|
|
| scoped_ptr<content::ResourceFetcher> correction_fetcher_;
|
| scoped_ptr<content::ResourceFetcher> tracking_fetcher_;
|
|
|