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
3 // found in the LICENSE file.
5 // IPC messages for interacting with frames.
6 // Multiply-included message file, hence no include guard.
8 #include "cc/surfaces/surface_id.h"
9 #include "cc/surfaces/surface_sequence.h"
10 #include "content/common/content_export.h"
11 #include "content/common/content_param_traits.h"
12 #include "content/common/frame_message_enums.h"
13 #include "content/common/frame_param.h"
14 #include "content/common/frame_replication_state.h"
15 #include "content/common/navigation_gesture.h"
16 #include "content/common/navigation_params.h"
17 #include "content/common/resource_request_body.h"
18 #include "content/public/common/color_suggestion.h"
19 #include "content/public/common/common_param_traits.h"
20 #include "content/public/common/console_message_level.h"
21 #include "content/public/common/context_menu_params.h"
22 #include "content/public/common/frame_navigate_params.h"
23 #include "content/public/common/javascript_message_type.h"
24 #include "content/public/common/message_port_types.h"
25 #include "content/public/common/page_state.h"
26 #include "content/public/common/resource_response.h"
27 #include "content/public/common/transition_element.h"
28 #include "ipc/ipc_message_macros.h"
29 #include "third_party/WebKit/public/web/WebTreeScopeType.h"
30 #include "ui/gfx/ipc/gfx_param_traits.h"
32 #include "url/origin.h"
34 #undef IPC_MESSAGE_EXPORT
35 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
37 #define IPC_MESSAGE_START FrameMsgStart
39 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode
,
41 AccessibilityModeComplete
)
42 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType
,
43 content::JAVASCRIPT_MESSAGE_TYPE_ALERT
,
44 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT
)
45 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value
,
46 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST
)
47 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_UILoadMetricsReportType::Value
,
48 FrameMsg_UILoadMetricsReportType::REPORT_TYPE_LAST
)
49 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType
,
50 blink::WebContextMenuData::MediaTypeLast
)
51 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::InputFieldType
,
52 blink::WebContextMenuData::InputFieldTypeLast
)
53 IPC_ENUM_TRAITS(blink::WebSandboxFlags
) // Bitmask.
54 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTreeScopeType
,
55 blink::WebTreeScopeType::Last
)
56 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType
, ui::MENU_SOURCE_TYPE_LAST
)
58 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion
)
59 IPC_STRUCT_TRAITS_MEMBER(color
)
60 IPC_STRUCT_TRAITS_MEMBER(label
)
61 IPC_STRUCT_TRAITS_END()
63 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams
)
64 IPC_STRUCT_TRAITS_MEMBER(media_type
)
65 IPC_STRUCT_TRAITS_MEMBER(x
)
66 IPC_STRUCT_TRAITS_MEMBER(y
)
67 IPC_STRUCT_TRAITS_MEMBER(link_url
)
68 IPC_STRUCT_TRAITS_MEMBER(link_text
)
69 IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url
)
70 IPC_STRUCT_TRAITS_MEMBER(src_url
)
71 IPC_STRUCT_TRAITS_MEMBER(has_image_contents
)
72 IPC_STRUCT_TRAITS_MEMBER(properties
)
73 IPC_STRUCT_TRAITS_MEMBER(page_url
)
74 IPC_STRUCT_TRAITS_MEMBER(keyword_url
)
75 IPC_STRUCT_TRAITS_MEMBER(frame_url
)
76 IPC_STRUCT_TRAITS_MEMBER(frame_page_state
)
77 IPC_STRUCT_TRAITS_MEMBER(media_flags
)
78 IPC_STRUCT_TRAITS_MEMBER(selection_text
)
79 IPC_STRUCT_TRAITS_MEMBER(title_text
)
80 IPC_STRUCT_TRAITS_MEMBER(suggested_filename
)
81 IPC_STRUCT_TRAITS_MEMBER(misspelled_word
)
82 IPC_STRUCT_TRAITS_MEMBER(misspelling_hash
)
83 IPC_STRUCT_TRAITS_MEMBER(dictionary_suggestions
)
84 IPC_STRUCT_TRAITS_MEMBER(spellcheck_enabled
)
85 IPC_STRUCT_TRAITS_MEMBER(is_editable
)
86 IPC_STRUCT_TRAITS_MEMBER(writing_direction_default
)
87 IPC_STRUCT_TRAITS_MEMBER(writing_direction_left_to_right
)
88 IPC_STRUCT_TRAITS_MEMBER(writing_direction_right_to_left
)
89 IPC_STRUCT_TRAITS_MEMBER(edit_flags
)
90 IPC_STRUCT_TRAITS_MEMBER(security_info
)
91 IPC_STRUCT_TRAITS_MEMBER(frame_charset
)
92 IPC_STRUCT_TRAITS_MEMBER(referrer_policy
)
93 IPC_STRUCT_TRAITS_MEMBER(custom_context
)
94 IPC_STRUCT_TRAITS_MEMBER(custom_items
)
95 IPC_STRUCT_TRAITS_MEMBER(source_type
)
96 #if defined(OS_ANDROID)
97 IPC_STRUCT_TRAITS_MEMBER(selection_start
)
98 IPC_STRUCT_TRAITS_MEMBER(selection_end
)
100 IPC_STRUCT_TRAITS_MEMBER(input_field_type
)
101 IPC_STRUCT_TRAITS_END()
103 IPC_STRUCT_TRAITS_BEGIN(content::CustomContextMenuContext
)
104 IPC_STRUCT_TRAITS_MEMBER(is_pepper_menu
)
105 IPC_STRUCT_TRAITS_MEMBER(request_id
)
106 IPC_STRUCT_TRAITS_MEMBER(render_widget_id
)
107 IPC_STRUCT_TRAITS_MEMBER(link_followed
)
108 IPC_STRUCT_TRAITS_END()
110 IPC_STRUCT_TRAITS_BEGIN(content::TransitionElement
)
111 IPC_STRUCT_TRAITS_MEMBER(id
)
112 IPC_STRUCT_TRAITS_MEMBER(rect
)
113 IPC_STRUCT_TRAITS_END()
116 IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params
)
117 // Error code as reported in the DidFailProvisionalLoad callback.
118 IPC_STRUCT_MEMBER(int, error_code
)
119 // An error message generated from the error_code. This can be an empty
120 // string if we were unable to find a meaningful description.
121 IPC_STRUCT_MEMBER(base::string16
, error_description
)
122 // The URL that the error is reported for.
123 IPC_STRUCT_MEMBER(GURL
, url
)
124 // True if the failure is the result of navigating to a POST again
125 // and we're going to show the POST interstitial.
126 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial
)
127 // True if the navigation was canceled because it was ignored by a handler,
128 // e.g. shouldOverrideUrlLoading.
129 IPC_STRUCT_MEMBER(bool, was_ignored_by_handler
)
132 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams
)
133 IPC_STRUCT_TRAITS_MEMBER(page_id
)
134 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id
)
135 IPC_STRUCT_TRAITS_MEMBER(item_sequence_number
)
136 IPC_STRUCT_TRAITS_MEMBER(document_sequence_number
)
137 IPC_STRUCT_TRAITS_MEMBER(url
)
138 IPC_STRUCT_TRAITS_MEMBER(base_url
)
139 IPC_STRUCT_TRAITS_MEMBER(referrer
)
140 IPC_STRUCT_TRAITS_MEMBER(transition
)
141 IPC_STRUCT_TRAITS_MEMBER(redirects
)
142 IPC_STRUCT_TRAITS_MEMBER(should_update_history
)
143 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url
)
144 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding
)
145 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type
)
146 IPC_STRUCT_TRAITS_MEMBER(socket_address
)
147 IPC_STRUCT_TRAITS_END()
149 // Parameters structure for FrameHostMsg_DidCommitProvisionalLoad, which has
150 // too many data parameters to be reasonably put in a predefined IPC message.
151 IPC_STRUCT_BEGIN_WITH_PARENT(FrameHostMsg_DidCommitProvisionalLoad_Params
,
152 content::FrameNavigateParams
)
153 IPC_STRUCT_TRAITS_PARENT(content::FrameNavigateParams
)
155 // This is the value from the browser (copied from the navigation request)
156 // indicating whether it intended to make a new entry. TODO(avi): Remove this
157 // when the pending entry situation is made sane and the browser keeps them
158 // around long enough to match them via nav_entry_id.
159 IPC_STRUCT_MEMBER(bool, intended_as_new_entry
)
161 // Whether this commit created a new entry.
162 IPC_STRUCT_MEMBER(bool, did_create_new_entry
)
164 // Information regarding the security of the connection (empty if the
165 // connection was not secure).
166 IPC_STRUCT_MEMBER(std::string
, security_info
)
168 // The gesture that initiated this navigation.
169 IPC_STRUCT_MEMBER(content::NavigationGesture
, gesture
)
171 // True if this was a post request.
172 IPC_STRUCT_MEMBER(bool, is_post
)
174 // The POST body identifier. -1 if it doesn't exist.
175 IPC_STRUCT_MEMBER(int64
, post_id
)
177 // Whether the frame navigation resulted in no change to the documents within
178 // the page. For example, the navigation may have just resulted in scrolling
179 // to a named anchor.
180 IPC_STRUCT_MEMBER(bool, was_within_same_page
)
182 // The status code of the HTTP request.
183 IPC_STRUCT_MEMBER(int, http_status_code
)
185 // This flag is used to warn if the renderer is displaying an error page,
186 // so that we can set the appropriate page type.
187 IPC_STRUCT_MEMBER(bool, url_is_unreachable
)
189 // True if the connection was proxied. In this case, socket_address
190 // will represent the address of the proxy, rather than the remote host.
191 IPC_STRUCT_MEMBER(bool, was_fetched_via_proxy
)
193 // Serialized history item state to store in the navigation entry.
194 IPC_STRUCT_MEMBER(content::PageState
, page_state
)
196 // Original request's URL.
197 IPC_STRUCT_MEMBER(GURL
, original_request_url
)
199 // User agent override used to navigate.
200 IPC_STRUCT_MEMBER(bool, is_overriding_user_agent
)
202 // Notifies the browser that for this navigation, the session history was
203 // successfully cleared.
204 IPC_STRUCT_MEMBER(bool, history_list_was_cleared
)
206 // The routing_id of the render view associated with the navigation.
207 // We need to track the RenderViewHost routing_id because of downstream
208 // dependencies (crbug.com/392171 DownloadRequestHandle, SaveFileManager,
209 // ResourceDispatcherHostImpl, MediaStreamUIProxy,
210 // SpeechRecognitionDispatcherHost and possibly others). They look up the view
211 // based on the ID stored in the resource requests. Once those dependencies
212 // are unwound or moved to RenderFrameHost (crbug.com/304341) we can move the
213 // client to be based on the routing_id of the RenderFrameHost.
214 IPC_STRUCT_MEMBER(int, render_view_routing_id
)
216 // Origin of the frame. This will be replicated to any associated
217 // RenderFrameProxies.
218 IPC_STRUCT_MEMBER(url::Origin
, origin
)
220 // How navigation metrics starting on UI action for this load should be
222 IPC_STRUCT_MEMBER(FrameMsg_UILoadMetricsReportType::Value
, report_type
)
224 // Timestamp at which the UI action that triggered the navigation originated.
225 IPC_STRUCT_MEMBER(base::TimeTicks
, ui_timestamp
)
228 IPC_STRUCT_BEGIN(FrameMsg_PostMessage_Params
)
229 // Whether the data format is supplied as serialized script value, or as
230 // a simple string. If it is a raw string, must be converted from string to a
231 // WebSerializedScriptValue in the renderer process.
232 IPC_STRUCT_MEMBER(bool, is_data_raw_string
)
234 // The serialized script value.
235 IPC_STRUCT_MEMBER(base::string16
, data
)
237 // When sent to the browser, this is the routing ID of the source frame in
238 // the source process. The browser replaces it with the routing ID of the
239 // equivalent frame proxy in the destination process.
240 IPC_STRUCT_MEMBER(int, source_routing_id
)
242 // The origin of the source frame.
243 IPC_STRUCT_MEMBER(base::string16
, source_origin
)
245 // The origin for the message's target.
246 IPC_STRUCT_MEMBER(base::string16
, target_origin
)
248 // Information about the MessagePorts this message contains.
249 IPC_STRUCT_MEMBER(std::vector
<content::TransferredMessagePort
>, message_ports
)
250 IPC_STRUCT_MEMBER(std::vector
<int>, new_routing_ids
)
253 IPC_STRUCT_TRAITS_BEGIN(content::CommonNavigationParams
)
254 IPC_STRUCT_TRAITS_MEMBER(url
)
255 IPC_STRUCT_TRAITS_MEMBER(referrer
)
256 IPC_STRUCT_TRAITS_MEMBER(transition
)
257 IPC_STRUCT_TRAITS_MEMBER(navigation_type
)
258 IPC_STRUCT_TRAITS_MEMBER(allow_download
)
259 IPC_STRUCT_TRAITS_MEMBER(should_replace_current_entry
)
260 IPC_STRUCT_TRAITS_MEMBER(ui_timestamp
)
261 IPC_STRUCT_TRAITS_MEMBER(report_type
)
262 IPC_STRUCT_TRAITS_MEMBER(base_url_for_data_url
)
263 IPC_STRUCT_TRAITS_MEMBER(history_url_for_data_url
)
264 IPC_STRUCT_TRAITS_END()
266 IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams
)
267 IPC_STRUCT_TRAITS_MEMBER(method
)
268 IPC_STRUCT_TRAITS_MEMBER(headers
)
269 IPC_STRUCT_TRAITS_MEMBER(load_flags
)
270 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture
)
271 IPC_STRUCT_TRAITS_END()
273 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams
)
274 IPC_STRUCT_TRAITS_MEMBER(is_post
)
275 IPC_STRUCT_TRAITS_MEMBER(extra_headers
)
276 IPC_STRUCT_TRAITS_MEMBER(browser_initiated_post_data
)
277 #if defined(OS_ANDROID)
278 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture
)
280 IPC_STRUCT_TRAITS_MEMBER(transferred_request_child_id
)
281 IPC_STRUCT_TRAITS_MEMBER(transferred_request_request_id
)
282 IPC_STRUCT_TRAITS_END()
284 IPC_STRUCT_TRAITS_BEGIN(content::RequestNavigationParams
)
285 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent
)
286 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start
)
287 IPC_STRUCT_TRAITS_MEMBER(redirects
)
288 IPC_STRUCT_TRAITS_MEMBER(can_load_local_resources
)
289 IPC_STRUCT_TRAITS_MEMBER(request_time
)
290 IPC_STRUCT_TRAITS_MEMBER(page_state
)
291 IPC_STRUCT_TRAITS_MEMBER(page_id
)
292 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id
)
293 IPC_STRUCT_TRAITS_MEMBER(is_same_document_history_load
)
294 IPC_STRUCT_TRAITS_MEMBER(has_committed_real_load
)
295 IPC_STRUCT_TRAITS_MEMBER(intended_as_new_entry
)
296 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset
)
297 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset
)
298 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length
)
299 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list
)
300 IPC_STRUCT_TRAITS_END()
302 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState
)
303 IPC_STRUCT_TRAITS_MEMBER(origin
)
304 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags
)
305 IPC_STRUCT_TRAITS_MEMBER(name
)
306 IPC_STRUCT_TRAITS_END()
308 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_WidgetParams
)
309 // Gives the routing ID for the RenderWidget that will be attached to the
310 // new RenderFrame. If the RenderFrame does not need a RenderWidget, this
311 // is MSG_ROUTING_NONE and the other parameters are not read.
312 IPC_STRUCT_MEMBER(int, routing_id
)
314 // Identifier for the output surface for the new RenderWidget.
315 IPC_STRUCT_MEMBER(int, surface_id
)
317 // Tells the new RenderWidget whether it is initially hidden.
318 IPC_STRUCT_MEMBER(bool, hidden
)
321 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_Params
)
322 // Specifies the routing ID of the new RenderFrame object.
323 IPC_STRUCT_MEMBER(int, routing_id
)
325 // The new frame should be created as a child of the object
326 // identified by |parent_routing_id| or as top level if that is
328 IPC_STRUCT_MEMBER(int, parent_routing_id
)
330 // Identifies the previous sibling of the new frame, so that the new frame is
331 // inserted into the correct place in the frame tree. If this is
332 // MSG_ROUTING_NONE, the frame will be created as the leftmost child of its
333 // parent frame, in front of any other children.
334 IPC_STRUCT_MEMBER(int, previous_sibling_routing_id
)
336 // If a valid |proxy_routing_id| is provided, the new frame will be
337 // configured to replace the proxy on commit.
338 IPC_STRUCT_MEMBER(int, proxy_routing_id
)
340 // When the new frame has a parent, |replication_state| holds the new frame's
341 // properties replicated from the process rendering the parent frame, such as
342 // the new frame's sandbox flags.
343 IPC_STRUCT_MEMBER(content::FrameReplicationState
, replication_state
)
345 // Specifies properties for a new RenderWidget that will be attached to the
346 // new RenderFrame (if one is needed).
347 IPC_STRUCT_MEMBER(FrameMsg_NewFrame_WidgetParams
, widget_params
)
350 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params
)
351 IPC_STRUCT_MEMBER(GURL
, url
)
352 IPC_STRUCT_MEMBER(content::Referrer
, referrer
)
353 IPC_STRUCT_MEMBER(WindowOpenDisposition
, disposition
)
354 IPC_STRUCT_MEMBER(bool, should_replace_current_entry
)
355 IPC_STRUCT_MEMBER(bool, user_gesture
)
358 IPC_STRUCT_BEGIN(FrameMsg_TextTrackSettings_Params
)
359 // Text tracks on/off state
360 IPC_STRUCT_MEMBER(bool, text_tracks_enabled
)
362 // Background color of the text track.
363 IPC_STRUCT_MEMBER(std::string
, text_track_background_color
)
365 // Font family of the text track text.
366 IPC_STRUCT_MEMBER(std::string
, text_track_font_family
)
368 // Font style of the text track text.
369 IPC_STRUCT_MEMBER(std::string
, text_track_font_style
)
371 // Font variant of the text track text.
372 IPC_STRUCT_MEMBER(std::string
, text_track_font_variant
)
374 // Color of the text track text.
375 IPC_STRUCT_MEMBER(std::string
, text_track_text_color
)
377 // Text shadow (edge style) of the text track text.
378 IPC_STRUCT_MEMBER(std::string
, text_track_text_shadow
)
380 // Size of the text track text.
381 IPC_STRUCT_MEMBER(std::string
, text_track_text_size
)
384 #if defined(OS_MACOSX) || defined(OS_ANDROID)
385 // This message is used for supporting popup menus on Mac OS X and Android using
386 // native controls. See the FrameHostMsg_ShowPopup message.
387 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params
)
388 // Position on the screen.
389 IPC_STRUCT_MEMBER(gfx::Rect
, bounds
)
391 // The height of each item in the menu.
392 IPC_STRUCT_MEMBER(int, item_height
)
394 // The size of the font to use for those items.
395 IPC_STRUCT_MEMBER(double, item_font_size
)
397 // The currently selected (displayed) item in the menu.
398 IPC_STRUCT_MEMBER(int, selected_item
)
400 // The entire list of items in the popup menu.
401 IPC_STRUCT_MEMBER(std::vector
<content::MenuItem
>, popup_items
)
403 // Whether items should be right-aligned.
404 IPC_STRUCT_MEMBER(bool, right_aligned
)
406 // Whether this is a multi-select popup.
407 IPC_STRUCT_MEMBER(bool, allow_multiple_selection
)
411 // -----------------------------------------------------------------------------
412 // Messages sent from the browser to the renderer.
414 // Notifies the embedding frame that a new CompositorFrame is ready to be
415 // presented. When the frame finishes presenting, a matching
416 // FrameHostMsg_CompositorFrameSwappedACK should be sent back to the
417 // RenderViewHost that was produced the CompositorFrame.
419 // This is used in the ubercomp compositing path.
420 IPC_MESSAGE_ROUTED1(FrameMsg_CompositorFrameSwapped
,
421 FrameMsg_CompositorFrameSwapped_Params
/* params */)
423 IPC_MESSAGE_ROUTED4(FrameMsg_SetChildFrameSurface
,
424 cc::SurfaceId
/* surface_id */,
425 gfx::Size
/* frame_size */,
426 float /* scale_factor */,
427 cc::SurfaceSequence
/* sequence */)
429 // Notifies the embedding frame that the process rendering the child frame's
430 // contents has terminated.
431 IPC_MESSAGE_ROUTED0(FrameMsg_ChildFrameProcessGone
)
433 // Sent in response to a FrameHostMsg_ContextMenu to let the renderer know that
434 // the menu has been closed.
435 IPC_MESSAGE_ROUTED1(FrameMsg_ContextMenuClosed
,
436 content::CustomContextMenuContext
/* custom_context */)
438 // Executes custom context menu action that was provided from Blink.
439 IPC_MESSAGE_ROUTED2(FrameMsg_CustomContextMenuAction
,
440 content::CustomContextMenuContext
/* custom_context */,
441 unsigned /* action */)
443 // Requests that the RenderFrame or RenderFrameProxy sets its opener to null.
444 IPC_MESSAGE_ROUTED0(FrameMsg_DisownOpener
)
446 // Requests that the RenderFrame send back a response after waiting for the
447 // commit, activation and frame swap of the current DOM tree in blink.
448 IPC_MESSAGE_ROUTED1(FrameMsg_VisualStateRequest
, uint64
/* id */)
450 // Instructs the renderer to create a new RenderFrame object.
451 IPC_MESSAGE_CONTROL1(FrameMsg_NewFrame
, FrameMsg_NewFrame_Params
/* params */)
453 // Instructs the renderer to create a new RenderFrameProxy object with
454 // |routing_id|. The new proxy should be created as a child of the object
455 // identified by |parent_routing_id| or as top level if that is
457 IPC_MESSAGE_CONTROL4(FrameMsg_NewFrameProxy
,
458 int /* routing_id */,
459 int /* parent_routing_id */,
460 int /* render_view_routing_id */,
461 content::FrameReplicationState
/* replication_state */)
463 // Tells the renderer to perform the specified navigation, interrupting any
464 // existing navigation.
465 IPC_MESSAGE_ROUTED3(FrameMsg_Navigate
,
466 content::CommonNavigationParams
, /* common_params */
467 content::StartNavigationParams
, /* start_params */
468 content::RequestNavigationParams
/* request_params */)
470 // Instructs the renderer to invoke the frame's beforeunload event handler.
471 // Expects the result to be returned via FrameHostMsg_BeforeUnload_ACK.
472 IPC_MESSAGE_ROUTED0(FrameMsg_BeforeUnload
)
474 // Instructs the frame to swap out for a cross-site transition, including
475 // running the unload event handler and creating a RenderFrameProxy with the
476 // given |proxy_routing_id|. Expects a SwapOut_ACK message when finished.
477 IPC_MESSAGE_ROUTED3(FrameMsg_SwapOut
,
478 int /* proxy_routing_id */,
479 bool /* is_loading */,
480 content::FrameReplicationState
/* replication_state */)
482 // Instructs the frame to stop the load in progress, if any.
483 IPC_MESSAGE_ROUTED0(FrameMsg_Stop
)
485 // A message sent to RenderFrameProxy to indicate that its corresponding
486 // RenderFrame has started loading a document.
487 IPC_MESSAGE_ROUTED0(FrameMsg_DidStartLoading
)
489 // A message sent to RenderFrameProxy to indicate that its corresponding
490 // RenderFrame has completed loading.
491 IPC_MESSAGE_ROUTED0(FrameMsg_DidStopLoading
)
493 // Request for the renderer to insert CSS into the frame.
494 IPC_MESSAGE_ROUTED1(FrameMsg_CSSInsertRequest
,
495 std::string
/* css */)
497 // Add message to the devtools console.
498 IPC_MESSAGE_ROUTED2(FrameMsg_AddMessageToConsole
,
499 content::ConsoleMessageLevel
/* level */,
500 std::string
/* message */)
502 // Request for the renderer to execute JavaScript in the frame's context.
504 // javascript is the string containing the JavaScript to be executed in the
505 // target frame's context.
507 // If the third parameter is true the result is sent back to the browser using
508 // the message FrameHostMsg_JavaScriptExecuteResponse.
509 // FrameHostMsg_JavaScriptExecuteResponse is passed the ID parameter so that the
510 // host can uniquely identify the request.
511 IPC_MESSAGE_ROUTED3(FrameMsg_JavaScriptExecuteRequest
,
512 base::string16
, /* javascript */
514 bool /* if true, a reply is requested */)
516 // ONLY FOR TESTS: Same as above but adds a fake UserGestureindicator around
517 // execution. (crbug.com/408426)
518 IPC_MESSAGE_ROUTED4(FrameMsg_JavaScriptExecuteRequestForTests
,
519 base::string16
, /* javascript */
521 bool, /* if true, a reply is requested */
522 bool /* if true, a user gesture indicator is created */)
524 // Same as FrameMsg_JavaScriptExecuteRequest above except the script is
525 // run in the isolated world specified by the fourth parameter.
526 IPC_MESSAGE_ROUTED4(FrameMsg_JavaScriptExecuteRequestInIsolatedWorld
,
527 base::string16
, /* javascript */
529 bool, /* if true, a reply is requested */
532 // Selects between the given start and end offsets in the currently focused
534 IPC_MESSAGE_ROUTED2(FrameMsg_SetEditableSelectionOffsets
,
538 // Requests a navigation to the supplied markup, in an iframe with sandbox
540 IPC_MESSAGE_ROUTED1(FrameMsg_SetupTransitionView
,
541 std::string
/* markup */)
543 // Tells the renderer to hide the elements specified by the supplied CSS
544 // selector, and activates any exiting-transition stylesheets.
545 IPC_MESSAGE_ROUTED2(FrameMsg_BeginExitTransition
,
546 std::string
/* css_selector */,
547 bool /* exit_to_native_app */)
549 // Tell the renderer to revert the exit transition done before
550 IPC_MESSAGE_ROUTED0(FrameMsg_RevertExitTransition
)
552 // Tell the renderer to hide transition elements.
553 IPC_MESSAGE_ROUTED1(FrameMsg_HideTransitionElements
,
554 std::string
/* css_selector */)
556 // Tell the renderer to hide transition elements.
557 IPC_MESSAGE_ROUTED1(FrameMsg_ShowTransitionElements
,
558 std::string
/* css_selector */)
560 // Tells the renderer to reload the frame, optionally ignoring the cache while
562 IPC_MESSAGE_ROUTED1(FrameMsg_Reload
,
563 bool /* ignore_cache */)
565 // Notifies the color chooser client that the user selected a color.
566 IPC_MESSAGE_ROUTED2(FrameMsg_DidChooseColorResponse
, unsigned, SkColor
)
568 // Notifies the color chooser client that the color chooser has ended.
569 IPC_MESSAGE_ROUTED1(FrameMsg_DidEndColorChooser
, unsigned)
571 // Notifies the corresponding RenderFrameProxy object to replace itself with the
572 // RenderFrame object it is associated with.
573 IPC_MESSAGE_ROUTED0(FrameMsg_DeleteProxy
)
575 // Request the text surrounding the selection with a |max_length|. The response
576 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse.
577 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest
,
578 size_t /* max_length */)
580 // Tells the renderer to insert a link to the specified stylesheet. This is
581 // needed to support navigation transitions.
582 IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL
, std::string
)
584 // Change the accessibility mode in the renderer process.
585 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode
,
588 // Dispatch a load event in the iframe element containing this frame.
589 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad
)
591 // Notifies the frame that its parent has changed the frame's sandbox flags.
592 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateSandboxFlags
, blink::WebSandboxFlags
)
594 // Update a proxy's window.name property. Used when the frame's name is
595 // changed in another process.
596 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateName
, std::string
/* name */)
598 // Update a proxy's replicated origin. Used when the frame is navigated to a
600 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateOrigin
, url::Origin
/* origin */)
602 // Send to the RenderFrame to set text tracks state and style settings.
603 // Sent for top-level frames.
604 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings
,
605 FrameMsg_TextTrackSettings_Params
/* params */)
607 // Posts a message from a frame in another process to the current renderer.
608 IPC_MESSAGE_ROUTED1(FrameMsg_PostMessageEvent
, FrameMsg_PostMessage_Params
)
610 #if defined(OS_ANDROID)
612 // External popup menus.
613 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems
,
614 bool /* user canceled the popup */,
615 std::vector
<int> /* selected indices */)
617 #elif defined(OS_MACOSX)
619 // External popup menus.
620 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem
,
621 int /* selected index, -1 means no selection */)
626 // Tells the renderer that a navigation is ready to commit. The renderer should
627 // request |stream_url| to get access to the stream containing the body of the
629 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation
,
630 content::ResourceResponseHead
, /* response */
631 GURL
, /* stream_url */
632 content::CommonNavigationParams
, /* common_params */
633 content::RequestNavigationParams
/* request_params */)
636 // Tells the renderer that a navigation failed with the error code |error_code|
637 // and that the renderer should display an appropriate error page.
638 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation
,
639 content::CommonNavigationParams
, /* common_params */
640 content::RequestNavigationParams
, /* request_params */
641 bool, /* stale_copy_in_cache */
642 int /* error_code */)
644 #if defined(ENABLE_PLUGINS)
645 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist.
646 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist
,
647 std::set
<GURL
> /* origin_whitelist */)
648 #endif // defined(ENABLE_PLUGINS)
650 // -----------------------------------------------------------------------------
651 // Messages sent from the renderer to the browser.
653 // Blink and JavaScript error messages to log to the console
655 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole
,
656 int32
, /* log level */
657 base::string16
, /* msg */
658 int32
, /* line number */
659 base::string16
/* source id */ )
661 // Sent by the renderer when a child frame is created in the renderer.
663 // Each of these messages will have a corresponding FrameHostMsg_Detach message
664 // sent when the frame is detached from the DOM.
665 IPC_SYNC_MESSAGE_CONTROL4_1(FrameHostMsg_CreateChildFrame
,
666 int32
/* parent_routing_id */,
667 blink::WebTreeScopeType
/* scope */,
668 std::string
/* frame_name */,
669 blink::WebSandboxFlags
/* sandbox flags */,
670 int32
/* new_routing_id */)
672 // Sent by the renderer to the parent RenderFrameHost when a child frame is
673 // detached from the DOM.
674 IPC_MESSAGE_ROUTED0(FrameHostMsg_Detach
)
676 // Indicates the renderer process is gone. This actually is sent by the
677 // browser process to itself, but keeps the interface cleaner.
678 IPC_MESSAGE_ROUTED2(FrameHostMsg_RenderProcessGone
,
679 int, /* this really is base::TerminationStatus */
682 // Sent by the renderer when the frame becomes focused.
683 IPC_MESSAGE_ROUTED0(FrameHostMsg_FrameFocused
)
685 // Sent when the renderer starts a provisional load for a frame.
686 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidStartProvisionalLoadForFrame
,
689 // Sent when the renderer fails a provisional load with an error.
690 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFailProvisionalLoadWithError
,
691 FrameHostMsg_DidFailProvisionalLoadWithError_Params
)
693 // Notifies the browser that a frame in the view has changed. This message
694 // has a lot of parameters and is packed/unpacked by functions defined in
695 // render_messages.h.
696 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidCommitProvisionalLoad
,
697 FrameHostMsg_DidCommitProvisionalLoad_Params
)
699 // Notifies the browser that a document has been loaded.
700 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFinishDocumentLoad
)
702 IPC_MESSAGE_ROUTED4(FrameHostMsg_DidFailLoadWithError
,
703 GURL
/* validated_url */,
704 int /* error_code */,
705 base::string16
/* error_description */,
706 bool /* was_ignored_by_handler */)
708 // Sent when the renderer decides to ignore a navigation.
709 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidDropNavigation
)
711 // Sent when the renderer starts loading the page. |to_different_document| will
712 // be true unless the load is a fragment navigation, or triggered by
713 // history.pushState/replaceState.
714 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidStartLoading
,
715 bool /* to_different_document */)
717 // Sent when the renderer is done loading a page.
718 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidStopLoading
)
720 // Sent when the frame changes its window.name.
721 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeName
, std::string
/* name */)
723 // Sent when the renderer changed the progress of a load.
724 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress
,
725 double /* load_progress */)
727 // Requests that the given URL be opened in the specified manner.
728 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL
, FrameHostMsg_OpenURL_Params
)
730 // Notifies the browser that a frame finished loading.
731 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad
,
732 GURL
/* validated_url */)
734 // Sent when after the onload handler has been invoked for the document
735 // in this frame. Sent for top-level frames. |report_type| and |ui_timestamp|
736 // are used to report navigation metrics starting on the ui input event that
737 // triggered the navigation timestamp.
738 IPC_MESSAGE_ROUTED2(FrameHostMsg_DocumentOnLoadCompleted
,
739 FrameMsg_UILoadMetricsReportType::Value
/* report_type */,
740 base::TimeTicks
/* ui_timestamp */)
742 // Notifies that the initial empty document of a view has been accessed.
743 // After this, it is no longer safe to show a pending navigation's URL without
744 // making a URL spoof possible.
745 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidAccessInitialDocument
)
747 // Sent when the frame sets its opener to null, disowning it for the lifetime of
748 // the window. Sent for top-level frames.
749 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidDisownOpener
)
751 // Notifies the browser that a page id was assigned.
752 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidAssignPageId
,
755 // Notifies the browser that sandbox flags have changed for a subframe of this
757 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeSandboxFlags
,
758 int32
/* subframe_routing_id */,
759 blink::WebSandboxFlags
/* updated_flags */)
761 // Changes the title for the page in the UI when the page is navigated or the
762 // title changes. Sent for top-level frames.
763 IPC_MESSAGE_ROUTED2(FrameHostMsg_UpdateTitle
,
764 base::string16
/* title */,
765 blink::WebTextDirection
/* title direction */)
767 // Change the encoding name of the page in UI when the page has detected
768 // proper encoding name. Sent for top-level frames.
769 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateEncoding
,
770 std::string
/* new encoding name */)
772 // Following message is used to communicate the values received by the
773 // callback binding the JS to Cpp.
774 // An instance of browser that has an automation host listening to it can
775 // have a javascript send a native value (string, number, boolean) to the
776 // listener in Cpp. (DomAutomationController)
777 IPC_MESSAGE_ROUTED2(FrameHostMsg_DomOperationResponse
,
778 std::string
/* json_string */,
779 int /* automation_id */)
781 // Used to set a cookie. The cookie is set asynchronously, but will be
782 // available to a subsequent FrameHostMsg_GetCookies request.
783 IPC_MESSAGE_CONTROL4(FrameHostMsg_SetCookie
,
784 int /* render_frame_id */,
786 GURL
/* first_party_for_cookies */,
787 std::string
/* cookie */)
789 // Used to get cookies for the given URL. This may block waiting for a
790 // previous SetCookie message to be processed.
791 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_GetCookies
,
792 int /* render_frame_id */,
794 GURL
/* first_party_for_cookies */,
795 std::string
/* cookies */)
797 // Used to check if cookies are enabled for the given URL. This may block
798 // waiting for a previous SetCookie message to be processed.
799 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_CookiesEnabled
,
800 int /* render_frame_id */,
802 GURL
/* first_party_for_cookies */,
803 bool /* cookies_enabled */)
805 #if defined(ENABLE_PLUGINS)
806 // Notification sent from a renderer to the browser that a Pepper plugin
807 // instance is created in the DOM.
808 IPC_MESSAGE_ROUTED0(FrameHostMsg_PepperInstanceCreated
)
810 // Notification sent from a renderer to the browser that a Pepper plugin
811 // instance is deleted from the DOM.
812 IPC_MESSAGE_ROUTED0(FrameHostMsg_PepperInstanceDeleted
)
814 // Sent to the browser when the renderer detects it is blocked on a pepper
815 // plugin message for too long. This is also sent when it becomes unhung
816 // (according to the value of is_hung). The browser can give the user the
817 // option of killing the plugin.
818 IPC_MESSAGE_ROUTED3(FrameHostMsg_PepperPluginHung
,
819 int /* plugin_child_id */,
820 base::FilePath
/* path */,
823 // Sent by the renderer process to indicate that a plugin instance has crashed.
824 // Note: |plugin_pid| should not be trusted. The corresponding process has
825 // probably died. Moreover, the ID may have been reused by a new process. Any
826 // usage other than displaying it in a prompt to the user is very likely to be
828 IPC_MESSAGE_ROUTED2(FrameHostMsg_PluginCrashed
,
829 base::FilePath
/* plugin_path */,
830 base::ProcessId
/* plugin_pid */)
832 // Return information about a plugin for the given URL and MIME
833 // type. If there is no matching plugin, |found| is false.
834 // |actual_mime_type| is the actual mime type supported by the
836 IPC_SYNC_MESSAGE_CONTROL4_3(FrameHostMsg_GetPluginInfo
,
837 int /* render_frame_id */,
840 std::string
/* mime_type */,
842 content::WebPluginInfo
/* plugin info */,
843 std::string
/* actual_mime_type */)
845 // A renderer sends this to the browser process when it wants to temporarily
846 // whitelist an origin's plugin content as essential. This temporary whitelist
847 // is specific to a top level frame, and is cleared when the whitelisting
848 // RenderFrame is destroyed.
849 IPC_MESSAGE_ROUTED1(FrameHostMsg_PluginContentOriginAllowed
,
850 GURL
/* content_origin */)
851 #endif // defined(ENABLE_PLUGINS)
853 // A renderer sends this to the browser process when it wants to
854 // create a plugin. The browser will create the plugin process if
855 // necessary, and will return a handle to the channel on success.
856 // On error an empty string is returned.
857 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin
,
858 int /* render_frame_id */,
861 std::string
/* mime_type */,
862 IPC::ChannelHandle
/* channel_handle */,
863 content::WebPluginInfo
/* info */)
865 // Acknowledge that we presented an ubercomp frame.
867 // See FrameMsg_CompositorFrameSwapped
868 IPC_MESSAGE_ROUTED1(FrameHostMsg_CompositorFrameSwappedACK
,
869 FrameHostMsg_CompositorFrameSwappedACK_Params
/* params */)
871 // Satisfies a Surface destruction dependency associated with |sequence|.
872 IPC_MESSAGE_ROUTED1(FrameHostMsg_SatisfySequence
,
873 cc::SurfaceSequence
/* sequence */)
875 // Creates a destruction dependency for the Surface specified by the given
877 IPC_MESSAGE_ROUTED2(FrameHostMsg_RequireSequence
,
878 cc::SurfaceId
/* surface_id */,
879 cc::SurfaceSequence
/* sequence */)
881 // Provides the result from handling BeforeUnload. |proceed| matches the return
882 // value of the frame's beforeunload handler: true if the user decided to
883 // proceed with leaving the page.
884 IPC_MESSAGE_ROUTED3(FrameHostMsg_BeforeUnload_ACK
,
886 base::TimeTicks
/* before_unload_start_time */,
887 base::TimeTicks
/* before_unload_end_time */)
889 // Indicates that the current frame has swapped out, after a SwapOut message.
890 IPC_MESSAGE_ROUTED0(FrameHostMsg_SwapOut_ACK
)
892 IPC_MESSAGE_ROUTED1(FrameHostMsg_ReclaimCompositorResources
,
893 FrameHostMsg_ReclaimCompositorResources_Params
/* params */)
895 // Forwards an input event to a child.
896 // TODO(nick): Temporary bridge, revisit once the browser process can route
897 // input directly to subframes. http://crbug.com/339659
898 IPC_MESSAGE_ROUTED1(FrameHostMsg_ForwardInputEvent
,
899 IPC::WebInputEventPointer
/* event */)
901 // Tells the parent that a child's frame rect has changed (or the rect/scroll
902 // position of a child's ancestor has changed).
903 IPC_MESSAGE_ROUTED1(FrameHostMsg_FrameRectChanged
, gfx::Rect
/* frame_rect */)
905 // Used to tell the parent that the user right clicked on an area of the
906 // content area, and a context menu should be shown for it. The params
907 // object contains information about the node(s) that were selected when the
908 // user right clicked.
909 IPC_MESSAGE_ROUTED1(FrameHostMsg_ContextMenu
, content::ContextMenuParams
)
911 // Initial drawing parameters for a child frame that has been swapped out to
913 IPC_MESSAGE_ROUTED2(FrameHostMsg_InitializeChildFrame
,
914 gfx::Rect
/* frame_rect */,
915 float /* scale_factor */)
917 // Response for FrameMsg_JavaScriptExecuteRequest, sent when a reply was
918 // requested. The ID is the parameter supplied to
919 // FrameMsg_JavaScriptExecuteRequest. The result has the value returned by the
920 // script as its only element, one of Null, Boolean, Integer, Real, Date, or
922 IPC_MESSAGE_ROUTED2(FrameHostMsg_JavaScriptExecuteResponse
,
924 base::ListValue
/* result */)
926 // A request to run a JavaScript dialog.
927 IPC_SYNC_MESSAGE_ROUTED4_2(FrameHostMsg_RunJavaScriptMessage
,
928 base::string16
/* in - alert message */,
929 base::string16
/* in - default prompt */,
930 GURL
/* in - originating page URL */,
931 content::JavaScriptMessageType
/* in - type */,
932 bool /* out - success */,
933 base::string16
/* out - user_input field */)
935 // Displays a dialog to confirm that the user wants to navigate away from the
936 // page. Replies true if yes, and false otherwise. The reply string is ignored,
937 // but is included so that we can use OnJavaScriptMessageBoxClosed.
938 IPC_SYNC_MESSAGE_ROUTED3_2(FrameHostMsg_RunBeforeUnloadConfirm
,
939 GURL
, /* in - originating frame URL */
940 base::string16
/* in - alert message */,
941 bool /* in - is a reload */,
942 bool /* out - success */,
943 base::string16
/* out - This is ignored.*/)
945 // Asks the browser to open the color chooser.
946 IPC_MESSAGE_ROUTED3(FrameHostMsg_OpenColorChooser
,
949 std::vector
<content::ColorSuggestion
> /* suggestions */)
951 // Asks the browser to end the color chooser.
952 IPC_MESSAGE_ROUTED1(FrameHostMsg_EndColorChooser
, int /* id */)
954 // Change the selected color in the color chooser.
955 IPC_MESSAGE_ROUTED2(FrameHostMsg_SetSelectedColorInColorChooser
,
959 // Notifies the browser that media has started/stopped playing.
960 IPC_MESSAGE_ROUTED4(FrameHostMsg_MediaPlayingNotification
,
961 int64
/* player_cookie, distinguishes instances */,
962 bool /* has_video */,
963 bool /* has_audio */,
964 bool /* is_remote */)
966 IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaPausedNotification
,
967 int64
/* player_cookie, distinguishes instances */)
969 // Notify browser the theme color has been changed.
970 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeThemeColor
,
971 SkColor
/* theme_color */)
973 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and
974 // |endOffset| are the offsets of the selection in the returned |content|.
975 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse
,
976 base::string16
, /* content */
977 size_t, /* startOffset */
978 size_t /* endOffset */)
980 // Register a new handler for URL requests with the given scheme.
981 IPC_MESSAGE_ROUTED4(FrameHostMsg_RegisterProtocolHandler
,
982 std::string
/* scheme */,
984 base::string16
/* title */,
985 bool /* user_gesture */)
987 // Unregister the registered handler for URL requests with the given scheme.
988 IPC_MESSAGE_ROUTED3(FrameHostMsg_UnregisterProtocolHandler
,
989 std::string
/* scheme */,
991 bool /* user_gesture */)
994 // Tells the browser to perform a navigation.
995 IPC_MESSAGE_ROUTED3(FrameHostMsg_BeginNavigation
,
996 content::CommonNavigationParams
,
997 content::BeginNavigationParams
,
998 scoped_refptr
<content::ResourceRequestBody
>)
1000 // Sent once a paint happens after the first non empty layout. In other words
1001 // after the frame has painted something.
1002 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint
)
1004 // Sent as a response to FrameMsg_VisualStateRequest.
1005 // The message is delivered using RenderWidget::QueueMessage.
1006 IPC_MESSAGE_ROUTED1(FrameHostMsg_VisualStateResponse
, uint64
/* id */)
1008 // Puts the browser into "tab fullscreen" mode for the sending renderer.
1009 // See the comment in chrome/browser/ui/browser.h for more details.
1010 IPC_MESSAGE_ROUTED1(FrameHostMsg_ToggleFullscreen
, bool /* enter_fullscreen */)
1012 // Dispatch a load event for this frame in the iframe element of an
1013 // out-of-process parent frame.
1014 IPC_MESSAGE_ROUTED0(FrameHostMsg_DispatchLoad
)
1016 // Sent to the browser from a frame proxy to post a message to the frame's
1018 IPC_MESSAGE_ROUTED1(FrameHostMsg_RouteMessageEvent
,
1019 FrameMsg_PostMessage_Params
)
1021 #if defined(OS_MACOSX) || defined(OS_ANDROID)
1023 // Message to show/hide a popup menu using native controls.
1024 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup
,
1025 FrameHostMsg_ShowPopup_Params
)
1026 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup
)