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

Unified Diff: chrome/common/render_messages.h

Issue 1442433003: Add "Show saved copy" button in dino page when there's offline copy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some minor fixes 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 e096a931ac55f5f02da1eea0fb22de14d0c6336d..5083a0e4da31a309145caf08ccad6db102a3bcd4 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -323,10 +323,10 @@ IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetCanShowNetworkDiagnosticsDialog,
bool /* can_show_network_diagnostics_dialog */)
#if defined(OS_ANDROID)
-// Tells the renderer whether or not an offline page exists. This is used to
-// decide if "show saved pages" button will be provided on certain error page.
-IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetHasOfflinePages,
- bool /* has_offline_pages */)
+// Tells the renderer about the status of the offline pages. This is used to
+// decide if offline related button will be provided on certain error page.
+IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetOfflinePageInfo,
+ int /* offline_page_status */)
#endif
// Provides the information needed by the renderer process to contact a
@@ -345,6 +345,11 @@ IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RunNetworkDiagnostics,
// Message sent from the renderer to the browser to show the UI for offline
// pages.
IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_ShowOfflinePages)
+
+// Message sent from the renderer to the browser to load the offline copy of
+// the page that fails to load due to no internet.
+IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_LoadOfflineCopy,
+ GURL /* url */)
dcheng 2015/11/13 19:40:25 Since the renderer controls this parameter, doesn'
jianli 2015/11/13 22:32:13 Yes, the renderer could send the IPC to load the o
#endif
dcheng 2015/11/13 19:40:25 Can we add an // defined(OS_ANDROID) comment here?
jianli 2015/11/13 22:32:13 Done.
//-----------------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698