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

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

Issue 1155713005: Use a resource throttle to implement shouldOverrideUrlLoading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add flag showing that shouldOverrideUrl cancelled the navigation Created 5 years, 6 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // Error code as reported in the DidFailProvisionalLoad callback. 111 // Error code as reported in the DidFailProvisionalLoad callback.
112 IPC_STRUCT_MEMBER(int, error_code) 112 IPC_STRUCT_MEMBER(int, error_code)
113 // An error message generated from the error_code. This can be an empty 113 // An error message generated from the error_code. This can be an empty
114 // string if we were unable to find a meaningful description. 114 // string if we were unable to find a meaningful description.
115 IPC_STRUCT_MEMBER(base::string16, error_description) 115 IPC_STRUCT_MEMBER(base::string16, error_description)
116 // The URL that the error is reported for. 116 // The URL that the error is reported for.
117 IPC_STRUCT_MEMBER(GURL, url) 117 IPC_STRUCT_MEMBER(GURL, url)
118 // True if the failure is the result of navigating to a POST again 118 // True if the failure is the result of navigating to a POST again
119 // and we're going to show the POST interstitial. 119 // and we're going to show the POST interstitial.
120 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial) 120 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial)
121 IPC_STRUCT_MEMBER(bool, was_ignored_by_handler)
121 IPC_STRUCT_END() 122 IPC_STRUCT_END()
122 123
123 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams) 124 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams)
124 IPC_STRUCT_TRAITS_MEMBER(page_id) 125 IPC_STRUCT_TRAITS_MEMBER(page_id)
125 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id) 126 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id)
126 IPC_STRUCT_TRAITS_MEMBER(url) 127 IPC_STRUCT_TRAITS_MEMBER(url)
127 IPC_STRUCT_TRAITS_MEMBER(base_url) 128 IPC_STRUCT_TRAITS_MEMBER(base_url)
128 IPC_STRUCT_TRAITS_MEMBER(referrer) 129 IPC_STRUCT_TRAITS_MEMBER(referrer)
129 IPC_STRUCT_TRAITS_MEMBER(transition) 130 IPC_STRUCT_TRAITS_MEMBER(transition)
130 IPC_STRUCT_TRAITS_MEMBER(redirects) 131 IPC_STRUCT_TRAITS_MEMBER(redirects)
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 669
669 // Notifies the browser that a frame in the view has changed. This message 670 // Notifies the browser that a frame in the view has changed. This message
670 // has a lot of parameters and is packed/unpacked by functions defined in 671 // has a lot of parameters and is packed/unpacked by functions defined in
671 // render_messages.h. 672 // render_messages.h.
672 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidCommitProvisionalLoad, 673 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidCommitProvisionalLoad,
673 FrameHostMsg_DidCommitProvisionalLoad_Params) 674 FrameHostMsg_DidCommitProvisionalLoad_Params)
674 675
675 // Notifies the browser that a document has been loaded. 676 // Notifies the browser that a document has been loaded.
676 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFinishDocumentLoad) 677 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFinishDocumentLoad)
677 678
678 IPC_MESSAGE_ROUTED3(FrameHostMsg_DidFailLoadWithError, 679 IPC_MESSAGE_ROUTED4(FrameHostMsg_DidFailLoadWithError,
679 GURL /* validated_url */, 680 GURL /* validated_url */,
680 int /* error_code */, 681 int /* error_code */,
681 base::string16 /* error_description */) 682 base::string16 /* error_description */,
683 bool /* was_ignored_by_handler */)
682 684
683 // Sent when the renderer decides to ignore a navigation. 685 // Sent when the renderer decides to ignore a navigation.
684 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidDropNavigation) 686 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidDropNavigation)
685 687
686 // Sent when the renderer starts loading the page. |to_different_document| will 688 // Sent when the renderer starts loading the page. |to_different_document| will
687 // be true unless the load is a fragment navigation, or triggered by 689 // be true unless the load is a fragment navigation, or triggered by
688 // history.pushState/replaceState. 690 // history.pushState/replaceState.
689 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidStartLoading, 691 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidStartLoading,
690 bool /* to_different_document */) 692 bool /* to_different_document */)
691 693
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 FrameMsg_PostMessage_Params) 961 FrameMsg_PostMessage_Params)
960 962
961 #if defined(OS_MACOSX) || defined(OS_ANDROID) 963 #if defined(OS_MACOSX) || defined(OS_ANDROID)
962 964
963 // Message to show/hide a popup menu using native controls. 965 // Message to show/hide a popup menu using native controls.
964 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 966 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
965 FrameHostMsg_ShowPopup_Params) 967 FrameHostMsg_ShowPopup_Params)
966 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 968 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
967 969
968 #endif 970 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698