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

Unified Diff: chrome/common/render_messages.h

Issue 1410343007: Add "SHOW ALL SAVED PAGES" button to offline error page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address one more feedback Created 5 years, 1 month 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/common/render_messages.h
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index 2943ccbbd932faaf09189b99ecdf8ea3cd35c094..4ec73a6d49b464e6dd8eb7e9c145a060df43ad3c 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -324,6 +324,11 @@ IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo,
IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetCanShowNetworkDiagnosticsDialog,
bool /* can_show_network_diagnostics_dialog */)
+// Tells the renderer whether or not an offline page exists. This is used to
Lei Zhang 2015/11/11 00:55:57 You need an IPC reviewer anyway, but I hope that p
jianli 2015/11/11 01:16:47 Done.
+// decide if "show saved pages" button will be provided on certain error page.
+IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetHasOfflinePages,
+ bool /* has_offline_pages */)
+
// Provides the information needed by the renderer process to contact a
// navigation correction service. Handled by the NetErrorHelper.
IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo,
@@ -336,6 +341,10 @@ IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo,
IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RunNetworkDiagnostics,
GURL /* failed_url */)
+// Message sent from the renderer to the browser to show the UI for offline
+// pages.
+IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_ShowOfflinePages)
+
//-----------------------------------------------------------------------------
// Misc messages
// These are messages sent from the renderer to the browser process.

Powered by Google App Engine
This is Rietveld 408576698