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

Side by Side Diff: content/common/frame_messages.h

Issue 958083002: PlzNavigate: Show error pages when the navigation failed before commit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@support-data-urls
Patch Set: Fixed replace computation Created 5 years, 8 months 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // IPC messages for interacting with frames. 5 // IPC messages for interacting with frames.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/common/content_param_traits.h" 9 #include "content/common/content_param_traits.h"
10 #include "content/common/frame_message_enums.h" 10 #include "content/common/frame_message_enums.h"
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 // PlzNavigate 526 // PlzNavigate
527 // Tells the renderer that a navigation is ready to commit. The renderer should 527 // Tells the renderer that a navigation is ready to commit. The renderer should
528 // request |stream_url| to get access to the stream containing the body of the 528 // request |stream_url| to get access to the stream containing the body of the
529 // response. 529 // response.
530 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation, 530 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation,
531 content::ResourceResponseHead, /* response */ 531 content::ResourceResponseHead, /* response */
532 GURL, /* stream_url */ 532 GURL, /* stream_url */
533 content::CommonNavigationParams, /* common_params */ 533 content::CommonNavigationParams, /* common_params */
534 content::RequestNavigationParams /* request_params */) 534 content::RequestNavigationParams /* request_params */)
535 535
536 // PlzNavigate
537 // Tells the renderer that a navigation failed with the error code |error_code|
538 // and that the renderer should display an appropriate error page.
539 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation,
540 content::CommonNavigationParams, /* common_params */
541 content::RequestNavigationParams, /* request_params */
542 bool, /* stale_copy_in_cache */
543 int /* error_code */)
Charlie Reis 2015/04/09 00:07:30 Shouldn't this comment line up with the others, as
clamy 2015/04/10 14:04:49 Done. Weirdly this is produced by git cl format.
544
536 #if defined(ENABLE_PLUGINS) 545 #if defined(ENABLE_PLUGINS)
537 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. 546 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist.
538 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, 547 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist,
539 std::set<GURL> /* origin_whitelist */) 548 std::set<GURL> /* origin_whitelist */)
540 #endif // defined(ENABLE_PLUGINS) 549 #endif // defined(ENABLE_PLUGINS)
541 550
542 // ----------------------------------------------------------------------------- 551 // -----------------------------------------------------------------------------
543 // Messages sent from the renderer to the browser. 552 // Messages sent from the renderer to the browser.
544 553
545 // Blink and JavaScript error messages to log to the console 554 // Blink and JavaScript error messages to log to the console
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 IPC_MESSAGE_ROUTED0(FrameHostMsg_DispatchLoad) 863 IPC_MESSAGE_ROUTED0(FrameHostMsg_DispatchLoad)
855 864
856 #if defined(OS_MACOSX) || defined(OS_ANDROID) 865 #if defined(OS_MACOSX) || defined(OS_ANDROID)
857 866
858 // Message to show/hide a popup menu using native controls. 867 // Message to show/hide a popup menu using native controls.
859 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 868 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
860 FrameHostMsg_ShowPopup_Params) 869 FrameHostMsg_ShowPopup_Params)
861 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 870 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
862 871
863 #endif 872 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698