Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4656)

Unified Diff: chrome/browser/net/net_error_tab_helper.h

Issue 2588253002: Enable download page action for error page (Closed)
Patch Set: Fix trybots Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/net/net_error_tab_helper.h
diff --git a/chrome/browser/net/net_error_tab_helper.h b/chrome/browser/net/net_error_tab_helper.h
index 90ffc5279a37e37c77274b7a44e1215426635b1d..ea85185bae8da589e34a06bdc0da50574be73c21 100644
--- a/chrome/browser/net/net_error_tab_helper.h
+++ b/chrome/browser/net/net_error_tab_helper.h
@@ -52,6 +52,12 @@ class NetErrorTabHelper
dns_probe_status_snoop_callback_ = dns_probe_status_snoop_callback;
}
+#if BUILDFLAG(ANDROID_JAVA_UI)
+ bool is_showing_download_button_in_error_page() const {
+ return is_showing_download_button_in_error_page_;
+ }
+#endif // BUILDFLAG(ANDROID_JAVA_
+
// content::WebContentsObserver implementation.
void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override;
void DidStartNavigation(
@@ -80,6 +86,7 @@ class NetErrorTabHelper
#if BUILDFLAG(ANDROID_JAVA_UI)
void DownloadPageLater();
+ void SetIsShowingDownloadButtonInErrorPage(bool show);
#endif // BUILDFLAG(ANDROID_JAVA_UI)
private:
@@ -116,6 +123,11 @@ class NetErrorTabHelper
// is true. (This should never be true if |dns_error_active_| is false.)
bool dns_error_page_committed_;
+#if BUILDFLAG(ANDROID_JAVA_UI)
+ // True if download button is being shown in the error page.
+ bool is_showing_download_button_in_error_page_;
+#endif // BUILDFLAG(ANDROID_JAVA_UI
+
// The status of a DNS probe that may or may not have started or finished.
// Since the renderer can change out from under the helper (in cross-process
// navigations), it re-sends the status whenever an error page commits.

Powered by Google App Engine
This is Rietveld 408576698