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

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

Issue 689123003: Revert of Navigation transitions (web to native app): Pass data after starting provisional load ... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « content/browser/web_contents/web_contents_impl.cc ('k') | content/content_common.gypi » ('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 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"
11 #include "content/common/frame_param.h" 11 #include "content/common/frame_param.h"
12 #include "content/common/navigation_gesture.h" 12 #include "content/common/navigation_gesture.h"
13 #include "content/common/navigation_params.h" 13 #include "content/common/navigation_params.h"
14 #include "content/common/resource_request_body.h" 14 #include "content/common/resource_request_body.h"
15 #include "content/public/common/color_suggestion.h" 15 #include "content/public/common/color_suggestion.h"
16 #include "content/public/common/common_param_traits.h" 16 #include "content/public/common/common_param_traits.h"
17 #include "content/public/common/context_menu_params.h" 17 #include "content/public/common/context_menu_params.h"
18 #include "content/public/common/frame_navigate_params.h" 18 #include "content/public/common/frame_navigate_params.h"
19 #include "content/public/common/javascript_message_type.h" 19 #include "content/public/common/javascript_message_type.h"
20 #include "content/public/common/page_state.h" 20 #include "content/public/common/page_state.h"
21 #include "content/public/common/resource_response.h" 21 #include "content/public/common/resource_response.h"
22 #include "content/public/common/transition_element.h"
23 #include "ipc/ipc_message_macros.h" 22 #include "ipc/ipc_message_macros.h"
24 #include "ui/gfx/ipc/gfx_param_traits.h" 23 #include "ui/gfx/ipc/gfx_param_traits.h"
25 #include "url/gurl.h" 24 #include "url/gurl.h"
26 25
27 #undef IPC_MESSAGE_EXPORT 26 #undef IPC_MESSAGE_EXPORT
28 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 27 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
29 28
30 #define IPC_MESSAGE_START FrameMsgStart 29 #define IPC_MESSAGE_START FrameMsgStart
31 30
32 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode, 31 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 #endif 82 #endif
84 IPC_STRUCT_TRAITS_END() 83 IPC_STRUCT_TRAITS_END()
85 84
86 IPC_STRUCT_TRAITS_BEGIN(content::CustomContextMenuContext) 85 IPC_STRUCT_TRAITS_BEGIN(content::CustomContextMenuContext)
87 IPC_STRUCT_TRAITS_MEMBER(is_pepper_menu) 86 IPC_STRUCT_TRAITS_MEMBER(is_pepper_menu)
88 IPC_STRUCT_TRAITS_MEMBER(request_id) 87 IPC_STRUCT_TRAITS_MEMBER(request_id)
89 IPC_STRUCT_TRAITS_MEMBER(render_widget_id) 88 IPC_STRUCT_TRAITS_MEMBER(render_widget_id)
90 IPC_STRUCT_TRAITS_MEMBER(link_followed) 89 IPC_STRUCT_TRAITS_MEMBER(link_followed)
91 IPC_STRUCT_TRAITS_END() 90 IPC_STRUCT_TRAITS_END()
92 91
93 IPC_STRUCT_TRAITS_BEGIN(content::TransitionElement)
94 IPC_STRUCT_TRAITS_MEMBER(name)
95 IPC_STRUCT_TRAITS_MEMBER(rect)
96 IPC_STRUCT_TRAITS_END()
97
98 IPC_STRUCT_BEGIN(FrameHostMsg_AddNavigationTransitionData_Params)
99 IPC_STRUCT_MEMBER(int, render_frame_id)
100 IPC_STRUCT_MEMBER(std::string, allowed_destination_host_pattern)
101 IPC_STRUCT_MEMBER(std::string, selector)
102 IPC_STRUCT_MEMBER(std::string, markup)
103 IPC_STRUCT_MEMBER(std::vector<content::TransitionElement>, elements)
104 IPC_STRUCT_END()
105
106 IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params) 92 IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params)
107 // Error code as reported in the DidFailProvisionalLoad callback. 93 // Error code as reported in the DidFailProvisionalLoad callback.
108 IPC_STRUCT_MEMBER(int, error_code) 94 IPC_STRUCT_MEMBER(int, error_code)
109 // An error message generated from the error_code. This can be an empty 95 // An error message generated from the error_code. This can be an empty
110 // string if we were unable to find a meaningful description. 96 // string if we were unable to find a meaningful description.
111 IPC_STRUCT_MEMBER(base::string16, error_description) 97 IPC_STRUCT_MEMBER(base::string16, error_description)
112 // The URL that the error is reported for. 98 // The URL that the error is reported for.
113 IPC_STRUCT_MEMBER(GURL, url) 99 IPC_STRUCT_MEMBER(GURL, url)
114 // True if the failure is the result of navigating to a POST again 100 // True if the failure is the result of navigating to a POST again
115 // and we're going to show the POST interstitial. 101 // and we're going to show the POST interstitial.
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 IPC_STRUCT_MEMBER(int, transferred_request_request_id) 255 IPC_STRUCT_MEMBER(int, transferred_request_request_id)
270 256
271 // Whether or not this url should be allowed to access local file:// 257 // Whether or not this url should be allowed to access local file://
272 // resources. 258 // resources.
273 IPC_STRUCT_MEMBER(bool, can_load_local_resources) 259 IPC_STRUCT_MEMBER(bool, can_load_local_resources)
274 260
275 // If not empty, which frame to navigate. 261 // If not empty, which frame to navigate.
276 IPC_STRUCT_MEMBER(std::string, frame_to_navigate) 262 IPC_STRUCT_MEMBER(std::string, frame_to_navigate)
277 IPC_STRUCT_END() 263 IPC_STRUCT_END()
278 264
265 IPC_STRUCT_BEGIN(FrameHostMsg_AddNavigationTransitionData_Params)
266 IPC_STRUCT_MEMBER(int, render_frame_id)
267 IPC_STRUCT_MEMBER(std::string, allowed_destination_host_pattern)
268 IPC_STRUCT_MEMBER(std::string, selector)
269 IPC_STRUCT_MEMBER(std::string, markup)
270 IPC_STRUCT_MEMBER(std::vector<std::string>, names)
271 IPC_STRUCT_MEMBER(std::vector<gfx::Rect>, rects)
272 IPC_STRUCT_END()
273
279 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) 274 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params)
280 IPC_STRUCT_MEMBER(GURL, url) 275 IPC_STRUCT_MEMBER(GURL, url)
281 IPC_STRUCT_MEMBER(content::Referrer, referrer) 276 IPC_STRUCT_MEMBER(content::Referrer, referrer)
282 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) 277 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition)
283 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) 278 IPC_STRUCT_MEMBER(bool, should_replace_current_entry)
284 IPC_STRUCT_MEMBER(bool, user_gesture) 279 IPC_STRUCT_MEMBER(bool, user_gesture)
285 IPC_STRUCT_END() 280 IPC_STRUCT_END()
286 281
287 // PlzNavigate 282 // PlzNavigate
288 IPC_STRUCT_BEGIN(FrameHostMsg_BeginNavigation_Params) 283 IPC_STRUCT_BEGIN(FrameHostMsg_BeginNavigation_Params)
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) 765 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint)
771 766
772 #if defined(OS_MACOSX) || defined(OS_ANDROID) 767 #if defined(OS_MACOSX) || defined(OS_ANDROID)
773 768
774 // Message to show/hide a popup menu using native controls. 769 // Message to show/hide a popup menu using native controls.
775 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 770 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
776 FrameHostMsg_ShowPopup_Params) 771 FrameHostMsg_ShowPopup_Params)
777 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 772 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
778 773
779 #endif 774 #endif
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698