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

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

Issue 652953008: Navigation transitions (web to native app): Pass data after starting provisional load (Chrome side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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"
22 #include "ipc/ipc_message_macros.h" 23 #include "ipc/ipc_message_macros.h"
23 #include "ui/gfx/ipc/gfx_param_traits.h" 24 #include "ui/gfx/ipc/gfx_param_traits.h"
24 #include "url/gurl.h" 25 #include "url/gurl.h"
25 26
26 #undef IPC_MESSAGE_EXPORT 27 #undef IPC_MESSAGE_EXPORT
27 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 28 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
28 29
29 #define IPC_MESSAGE_START FrameMsgStart 30 #define IPC_MESSAGE_START FrameMsgStart
30 31
31 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode, 32 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 #endif 83 #endif
83 IPC_STRUCT_TRAITS_END() 84 IPC_STRUCT_TRAITS_END()
84 85
85 IPC_STRUCT_TRAITS_BEGIN(content::CustomContextMenuContext) 86 IPC_STRUCT_TRAITS_BEGIN(content::CustomContextMenuContext)
86 IPC_STRUCT_TRAITS_MEMBER(is_pepper_menu) 87 IPC_STRUCT_TRAITS_MEMBER(is_pepper_menu)
87 IPC_STRUCT_TRAITS_MEMBER(request_id) 88 IPC_STRUCT_TRAITS_MEMBER(request_id)
88 IPC_STRUCT_TRAITS_MEMBER(render_widget_id) 89 IPC_STRUCT_TRAITS_MEMBER(render_widget_id)
89 IPC_STRUCT_TRAITS_MEMBER(link_followed) 90 IPC_STRUCT_TRAITS_MEMBER(link_followed)
90 IPC_STRUCT_TRAITS_END() 91 IPC_STRUCT_TRAITS_END()
91 92
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
92 IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params) 106 IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params)
93 // Error code as reported in the DidFailProvisionalLoad callback. 107 // Error code as reported in the DidFailProvisionalLoad callback.
94 IPC_STRUCT_MEMBER(int, error_code) 108 IPC_STRUCT_MEMBER(int, error_code)
95 // An error message generated from the error_code. This can be an empty 109 // An error message generated from the error_code. This can be an empty
96 // string if we were unable to find a meaningful description. 110 // string if we were unable to find a meaningful description.
97 IPC_STRUCT_MEMBER(base::string16, error_description) 111 IPC_STRUCT_MEMBER(base::string16, error_description)
98 // The URL that the error is reported for. 112 // The URL that the error is reported for.
99 IPC_STRUCT_MEMBER(GURL, url) 113 IPC_STRUCT_MEMBER(GURL, url)
100 // True if the failure is the result of navigating to a POST again 114 // True if the failure is the result of navigating to a POST again
101 // and we're going to show the POST interstitial. 115 // and we're going to show the POST interstitial.
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 IPC_STRUCT_MEMBER(int, transferred_request_request_id) 269 IPC_STRUCT_MEMBER(int, transferred_request_request_id)
256 270
257 // Whether or not this url should be allowed to access local file:// 271 // Whether or not this url should be allowed to access local file://
258 // resources. 272 // resources.
259 IPC_STRUCT_MEMBER(bool, can_load_local_resources) 273 IPC_STRUCT_MEMBER(bool, can_load_local_resources)
260 274
261 // If not empty, which frame to navigate. 275 // If not empty, which frame to navigate.
262 IPC_STRUCT_MEMBER(std::string, frame_to_navigate) 276 IPC_STRUCT_MEMBER(std::string, frame_to_navigate)
263 IPC_STRUCT_END() 277 IPC_STRUCT_END()
264 278
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
274 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) 279 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params)
275 IPC_STRUCT_MEMBER(GURL, url) 280 IPC_STRUCT_MEMBER(GURL, url)
276 IPC_STRUCT_MEMBER(content::Referrer, referrer) 281 IPC_STRUCT_MEMBER(content::Referrer, referrer)
277 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) 282 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition)
278 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) 283 IPC_STRUCT_MEMBER(bool, should_replace_current_entry)
279 IPC_STRUCT_MEMBER(bool, user_gesture) 284 IPC_STRUCT_MEMBER(bool, user_gesture)
280 IPC_STRUCT_END() 285 IPC_STRUCT_END()
281 286
282 // PlzNavigate 287 // PlzNavigate
283 IPC_STRUCT_BEGIN(FrameHostMsg_BeginNavigation_Params) 288 IPC_STRUCT_BEGIN(FrameHostMsg_BeginNavigation_Params)
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) 770 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint)
766 771
767 #if defined(OS_MACOSX) || defined(OS_ANDROID) 772 #if defined(OS_MACOSX) || defined(OS_ANDROID)
768 773
769 // Message to show/hide a popup menu using native controls. 774 // Message to show/hide a popup menu using native controls.
770 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 775 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
771 FrameHostMsg_ShowPopup_Params) 776 FrameHostMsg_ShowPopup_Params)
772 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 777 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
773 778
774 #endif 779 #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