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

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

Issue 177713006: Revert 251563 "Move browser initiated navigation from RenderView..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
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"
11 #include "content/common/frame_param.h" 10 #include "content/common/frame_param.h"
12 #include "content/common/navigation_gesture.h" 11 #include "content/common/navigation_gesture.h"
13 #include "content/public/common/common_param_traits.h" 12 #include "content/public/common/common_param_traits.h"
14 #include "content/public/common/context_menu_params.h" 13 #include "content/public/common/context_menu_params.h"
15 #include "content/public/common/frame_navigate_params.h" 14 #include "content/public/common/frame_navigate_params.h"
16 #include "content/public/common/page_state.h" 15 #include "content/public/common/page_state.h"
17 #include "ipc/ipc_message_macros.h" 16 #include "ipc/ipc_message_macros.h"
18 #include "url/gurl.h" 17 #include "url/gurl.h"
19 18
20 #undef IPC_MESSAGE_EXPORT 19 #undef IPC_MESSAGE_EXPORT
21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 20 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
22 21
23 #define IPC_MESSAGE_START FrameMsgStart 22 #define IPC_MESSAGE_START FrameMsgStart
24 23
25 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value,
26 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST)
27 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, 24 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType,
28 blink::WebContextMenuData::MediaTypeLast) 25 blink::WebContextMenuData::MediaTypeLast)
29 26
30 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) 27 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST)
31 28
32 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams) 29 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams)
33 IPC_STRUCT_TRAITS_MEMBER(media_type) 30 IPC_STRUCT_TRAITS_MEMBER(media_type)
34 IPC_STRUCT_TRAITS_MEMBER(x) 31 IPC_STRUCT_TRAITS_MEMBER(x)
35 IPC_STRUCT_TRAITS_MEMBER(y) 32 IPC_STRUCT_TRAITS_MEMBER(y)
36 IPC_STRUCT_TRAITS_MEMBER(link_url) 33 IPC_STRUCT_TRAITS_MEMBER(link_url)
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 IPC_STRUCT_MEMBER(GURL, original_request_url) 145 IPC_STRUCT_MEMBER(GURL, original_request_url)
149 146
150 // User agent override used to navigate. 147 // User agent override used to navigate.
151 IPC_STRUCT_MEMBER(bool, is_overriding_user_agent) 148 IPC_STRUCT_MEMBER(bool, is_overriding_user_agent)
152 149
153 // Notifies the browser that for this navigation, the session history was 150 // Notifies the browser that for this navigation, the session history was
154 // successfully cleared. 151 // successfully cleared.
155 IPC_STRUCT_MEMBER(bool, history_list_was_cleared) 152 IPC_STRUCT_MEMBER(bool, history_list_was_cleared)
156 IPC_STRUCT_END() 153 IPC_STRUCT_END()
157 154
158 IPC_STRUCT_BEGIN(FrameMsg_Navigate_Params)
159 // The page_id for this navigation, or -1 if it is a new navigation. Back,
160 // Forward, and Reload navigations should have a valid page_id. If the load
161 // succeeds, then this page_id will be reflected in the resultant
162 // FrameHostMsg_DidCommitProvisionalLoad message.
163 IPC_STRUCT_MEMBER(int32, page_id)
164
165 // If page_id is -1, then pending_history_list_offset will also be -1.
166 // Otherwise, it contains the offset into the history list corresponding to
167 // the current navigation.
168 IPC_STRUCT_MEMBER(int, pending_history_list_offset)
169
170 // Informs the RenderView of where its current page contents reside in
171 // session history and the total size of the session history list.
172 IPC_STRUCT_MEMBER(int, current_history_list_offset)
173 IPC_STRUCT_MEMBER(int, current_history_list_length)
174
175 // Informs the RenderView the session history should be cleared. In that
176 // case, the RenderView needs to notify the browser that the clearing was
177 // succesful when the navigation commits.
178 IPC_STRUCT_MEMBER(bool, should_clear_history_list)
179
180 // The URL to load.
181 IPC_STRUCT_MEMBER(GURL, url)
182
183 // Base URL for use in WebKit's SubstituteData.
184 // Is only used with data: URLs.
185 IPC_STRUCT_MEMBER(GURL, base_url_for_data_url)
186
187 // History URL for use in WebKit's SubstituteData.
188 // Is only used with data: URLs.
189 IPC_STRUCT_MEMBER(GURL, history_url_for_data_url)
190
191 // The URL to send in the "Referer" header field. Can be empty if there is
192 // no referrer.
193 IPC_STRUCT_MEMBER(content::Referrer, referrer)
194
195 // Any redirect URLs that occurred before |url|. Useful for cross-process
196 // navigations; defaults to empty.
197 IPC_STRUCT_MEMBER(std::vector<GURL>, redirects)
198
199 // The type of transition.
200 IPC_STRUCT_MEMBER(content::PageTransition, transition)
201
202 // Informs the RenderView the pending navigation should replace the current
203 // history entry when it commits. This is used for cross-process redirects so
204 // the transferred navigation can recover the navigation state.
205 IPC_STRUCT_MEMBER(bool, should_replace_current_entry)
206
207 // Opaque history state (received by ViewHostMsg_UpdateState).
208 IPC_STRUCT_MEMBER(content::PageState, page_state)
209
210 // Type of navigation.
211 IPC_STRUCT_MEMBER(FrameMsg_Navigate_Type::Value, navigation_type)
212
213 // The time the request was created
214 IPC_STRUCT_MEMBER(base::Time, request_time)
215
216 // Extra headers (separated by \n) to send during the request.
217 IPC_STRUCT_MEMBER(std::string, extra_headers)
218
219 // The following two members identify a previous request that has been
220 // created before this navigation is being transferred to a new render view.
221 // This serves the purpose of recycling the old request.
222 // Unless this refers to a transferred navigation, these values are -1 and -1.
223 IPC_STRUCT_MEMBER(int, transferred_request_child_id)
224 IPC_STRUCT_MEMBER(int, transferred_request_request_id)
225
226 // Whether or not we should allow the url to download.
227 IPC_STRUCT_MEMBER(bool, allow_download)
228
229 // Whether or not the user agent override string should be used.
230 IPC_STRUCT_MEMBER(bool, is_overriding_user_agent)
231
232 // True if this was a post request.
233 IPC_STRUCT_MEMBER(bool, is_post)
234
235 // If is_post is true, holds the post_data information from browser. Empty
236 // otherwise.
237 IPC_STRUCT_MEMBER(std::vector<unsigned char>, browser_initiated_post_data)
238
239 // Whether or not this url should be allowed to access local file://
240 // resources.
241 IPC_STRUCT_MEMBER(bool, can_load_local_resources)
242
243 // If not empty, which frame to navigate.
244 IPC_STRUCT_MEMBER(std::string, frame_to_navigate)
245
246 // The navigationStart time to expose to JS for this navigation.
247 IPC_STRUCT_MEMBER(base::TimeTicks, browser_navigation_start)
248 IPC_STRUCT_END()
249
250 // ----------------------------------------------------------------------------- 155 // -----------------------------------------------------------------------------
251 // Messages sent from the browser to the renderer. 156 // Messages sent from the browser to the renderer.
252 157
253 // When HW accelerated buffers are swapped in an out-of-process child frame 158 // When HW accelerated buffers are swapped in an out-of-process child frame
254 // renderer, the message is forwarded to the embedding frame to notify it of 159 // renderer, the message is forwarded to the embedding frame to notify it of
255 // a new texture available for compositing. When the buffer has finished 160 // a new texture available for compositing. When the buffer has finished
256 // presenting, a FrameHostMsg_BuffersSwappedACK should be sent back to 161 // presenting, a FrameHostMsg_BuffersSwappedACK should be sent back to
257 // gpu host that produced this buffer. 162 // gpu host that produced this buffer.
258 // 163 //
259 // This is used in the non-ubercomp HW accelerated compositing path. 164 // This is used in the non-ubercomp HW accelerated compositing path.
(...skipping 16 matching lines...) Expand all
276 // Sent in response to a FrameHostMsg_ContextMenu to let the renderer know that 181 // Sent in response to a FrameHostMsg_ContextMenu to let the renderer know that
277 // the menu has been closed. 182 // the menu has been closed.
278 IPC_MESSAGE_ROUTED1(FrameMsg_ContextMenuClosed, 183 IPC_MESSAGE_ROUTED1(FrameMsg_ContextMenuClosed,
279 content::CustomContextMenuContext /* custom_context */) 184 content::CustomContextMenuContext /* custom_context */)
280 185
281 // Executes custom context menu action that was provided from Blink. 186 // Executes custom context menu action that was provided from Blink.
282 IPC_MESSAGE_ROUTED2(FrameMsg_CustomContextMenuAction, 187 IPC_MESSAGE_ROUTED2(FrameMsg_CustomContextMenuAction,
283 content::CustomContextMenuContext /* custom_context */, 188 content::CustomContextMenuContext /* custom_context */,
284 unsigned /* action */) 189 unsigned /* action */)
285 190
286 // Tells the renderer to perform the specified navigation, interrupting any
287 // existing navigation.
288 IPC_MESSAGE_ROUTED1(FrameMsg_Navigate, FrameMsg_Navigate_Params)
289
290 // Instructs the frame to swap out for a cross-site transition, including 191 // Instructs the frame to swap out for a cross-site transition, including
291 // running the unload event handler. Expects a SwapOut_ACK message when 192 // running the unload event handler. Expects a SwapOut_ACK message when
292 // finished. 193 // finished.
293 IPC_MESSAGE_ROUTED0(FrameMsg_SwapOut) 194 IPC_MESSAGE_ROUTED0(FrameMsg_SwapOut)
294 195
295 // ----------------------------------------------------------------------------- 196 // -----------------------------------------------------------------------------
296 // Messages sent from the renderer to the browser. 197 // Messages sent from the renderer to the browser.
297 198
298 // Sent by the renderer when a child frame is created in the renderer. 199 // Sent by the renderer when a child frame is created in the renderer.
299 // 200 //
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 // content area, and a context menu should be shown for it. The params 331 // content area, and a context menu should be shown for it. The params
431 // object contains information about the node(s) that were selected when the 332 // object contains information about the node(s) that were selected when the
432 // user right clicked. 333 // user right clicked.
433 IPC_MESSAGE_ROUTED1(FrameHostMsg_ContextMenu, content::ContextMenuParams) 334 IPC_MESSAGE_ROUTED1(FrameHostMsg_ContextMenu, content::ContextMenuParams)
434 335
435 // Initial drawing parameters for a child frame that has been swapped out to 336 // Initial drawing parameters for a child frame that has been swapped out to
436 // another process. 337 // another process.
437 IPC_MESSAGE_ROUTED2(FrameHostMsg_InitializeChildFrame, 338 IPC_MESSAGE_ROUTED2(FrameHostMsg_InitializeChildFrame,
438 gfx::Rect /* frame_rect */, 339 gfx::Rect /* frame_rect */,
439 float /* scale_factor */) 340 float /* scale_factor */)
OLDNEW
« no previous file with comments | « trunk/src/content/common/frame_message_enums.h ('k') | trunk/src/content/common/view_message_enums.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698