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

Side by Side 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: Fix after rebase 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 unified diff | Download patch
« no previous file with comments | « chrome/common/localized_error.cc ('k') | chrome/renderer/net/net_error_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included file, no traditional include guard. 5 // Multiply-included file, no traditional include guard.
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 // NetErrorHelper will receive this mesage and replace or update the error 315 // NetErrorHelper will receive this mesage and replace or update the error
316 // page with more specific troubleshooting suggestions. 316 // page with more specific troubleshooting suggestions.
317 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo, 317 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo,
318 int /* DNS probe status */) 318 int /* DNS probe status */)
319 319
320 // Tells the renderer whether or not there is a local diagnostics service that 320 // Tells the renderer whether or not there is a local diagnostics service that
321 // can be run via ChromeViewHostMsg_RunNetworkDiagnostics messages. 321 // can be run via ChromeViewHostMsg_RunNetworkDiagnostics messages.
322 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetCanShowNetworkDiagnosticsDialog, 322 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetCanShowNetworkDiagnosticsDialog,
323 bool /* can_show_network_diagnostics_dialog */) 323 bool /* can_show_network_diagnostics_dialog */)
324 324
325 #if defined(OS_ANDROID)
326 // Tells the renderer whether or not an offline page exists. This is used to
327 // decide if "show saved pages" button will be provided on certain error page.
328 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetHasOfflinePages,
329 bool /* has_offline_pages */)
330 #endif
331
325 // Provides the information needed by the renderer process to contact a 332 // Provides the information needed by the renderer process to contact a
326 // navigation correction service. Handled by the NetErrorHelper. 333 // navigation correction service. Handled by the NetErrorHelper.
327 IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo, 334 IPC_MESSAGE_ROUTED5(ChromeViewMsg_SetNavigationCorrectionInfo,
328 GURL /* Navigation correction service base URL */, 335 GURL /* Navigation correction service base URL */,
329 std::string /* language */, 336 std::string /* language */,
330 std::string /* origin_country */, 337 std::string /* origin_country */,
331 std::string /* API key to use */, 338 std::string /* API key to use */,
332 GURL /* Google Search URL to use */) 339 GURL /* Google Search URL to use */)
333 340
334 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RunNetworkDiagnostics, 341 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RunNetworkDiagnostics,
335 GURL /* failed_url */) 342 GURL /* failed_url */)
336 343
344 #if defined(OS_ANDROID)
345 // Message sent from the renderer to the browser to show the UI for offline
346 // pages.
347 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_ShowOfflinePages)
348 #endif
349
337 //----------------------------------------------------------------------------- 350 //-----------------------------------------------------------------------------
338 // Misc messages 351 // Misc messages
339 // These are messages sent from the renderer to the browser process. 352 // These are messages sent from the renderer to the browser process.
340 353
341 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats, 354 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
342 blink::WebCache::UsageStats /* stats */) 355 blink::WebCache::UsageStats /* stats */)
343 356
344 // Sent by the renderer process to check whether access to FileSystem is 357 // Sent by the renderer process to check whether access to FileSystem is
345 // granted by content settings. 358 // granted by content settings.
346 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_RequestFileSystemAccessSync, 359 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_RequestFileSystemAccessSync,
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 579
567 // Record a sample string to a Rappor metric. 580 // Record a sample string to a Rappor metric.
568 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, 581 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor,
569 std::string /* metric */, 582 std::string /* metric */,
570 std::string /* sample */) 583 std::string /* sample */)
571 584
572 // Record a domain and registry of a url to a Rappor metric. 585 // Record a domain and registry of a url to a Rappor metric.
573 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, 586 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL,
574 std::string /* metric */, 587 std::string /* metric */,
575 GURL /* sample url */) 588 GURL /* sample url */)
OLDNEW
« no previous file with comments | « chrome/common/localized_error.cc ('k') | chrome/renderer/net/net_error_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698