Add ICU message format support
[chromium-blink-merge.git] / content / common / frame_messages.h
blob52de800f69632a21465a80fcbb3ea3667792bc99
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"
31 #include "url/gurl.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,
40 AccessibilityModeOff,
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)
99 #endif
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)
130 IPC_STRUCT_END()
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
221 // reported.
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)
226 IPC_STRUCT_END()
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 // When sent from the browser, this is the routing ID of the source view in
243 // the destination process. This currently exists only to support legacy
244 // postMessage to Android WebView and will be removed once crbug.com/473258
245 // is fixed.
246 IPC_STRUCT_MEMBER(int, source_view_routing_id)
248 // The origin of the source frame.
249 IPC_STRUCT_MEMBER(base::string16, source_origin)
251 // The origin for the message's target.
252 IPC_STRUCT_MEMBER(base::string16, target_origin)
254 // Information about the MessagePorts this message contains.
255 IPC_STRUCT_MEMBER(std::vector<content::TransferredMessagePort>, message_ports)
256 IPC_STRUCT_MEMBER(std::vector<int>, new_routing_ids)
257 IPC_STRUCT_END()
259 IPC_STRUCT_TRAITS_BEGIN(content::CommonNavigationParams)
260 IPC_STRUCT_TRAITS_MEMBER(url)
261 IPC_STRUCT_TRAITS_MEMBER(referrer)
262 IPC_STRUCT_TRAITS_MEMBER(transition)
263 IPC_STRUCT_TRAITS_MEMBER(navigation_type)
264 IPC_STRUCT_TRAITS_MEMBER(allow_download)
265 IPC_STRUCT_TRAITS_MEMBER(should_replace_current_entry)
266 IPC_STRUCT_TRAITS_MEMBER(ui_timestamp)
267 IPC_STRUCT_TRAITS_MEMBER(report_type)
268 IPC_STRUCT_TRAITS_MEMBER(base_url_for_data_url)
269 IPC_STRUCT_TRAITS_MEMBER(history_url_for_data_url)
270 IPC_STRUCT_TRAITS_END()
272 IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams)
273 IPC_STRUCT_TRAITS_MEMBER(method)
274 IPC_STRUCT_TRAITS_MEMBER(headers)
275 IPC_STRUCT_TRAITS_MEMBER(load_flags)
276 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture)
277 IPC_STRUCT_TRAITS_END()
279 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams)
280 IPC_STRUCT_TRAITS_MEMBER(is_post)
281 IPC_STRUCT_TRAITS_MEMBER(extra_headers)
282 IPC_STRUCT_TRAITS_MEMBER(browser_initiated_post_data)
283 IPC_STRUCT_TRAITS_MEMBER(transferred_request_child_id)
284 IPC_STRUCT_TRAITS_MEMBER(transferred_request_request_id)
285 IPC_STRUCT_TRAITS_END()
287 IPC_STRUCT_TRAITS_BEGIN(content::RequestNavigationParams)
288 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent)
289 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start)
290 IPC_STRUCT_TRAITS_MEMBER(redirects)
291 IPC_STRUCT_TRAITS_MEMBER(can_load_local_resources)
292 IPC_STRUCT_TRAITS_MEMBER(request_time)
293 IPC_STRUCT_TRAITS_MEMBER(page_state)
294 IPC_STRUCT_TRAITS_MEMBER(page_id)
295 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id)
296 IPC_STRUCT_TRAITS_MEMBER(is_same_document_history_load)
297 IPC_STRUCT_TRAITS_MEMBER(has_committed_real_load)
298 IPC_STRUCT_TRAITS_MEMBER(intended_as_new_entry)
299 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset)
300 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset)
301 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length)
302 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list)
303 IPC_STRUCT_TRAITS_END()
305 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState)
306 IPC_STRUCT_TRAITS_MEMBER(origin)
307 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags)
308 IPC_STRUCT_TRAITS_MEMBER(name)
309 IPC_STRUCT_TRAITS_END()
311 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_WidgetParams)
312 // Gives the routing ID for the RenderWidget that will be attached to the
313 // new RenderFrame. If the RenderFrame does not need a RenderWidget, this
314 // is MSG_ROUTING_NONE and the other parameters are not read.
315 IPC_STRUCT_MEMBER(int, routing_id)
317 // Identifier for the output surface for the new RenderWidget.
318 IPC_STRUCT_MEMBER(int, surface_id)
320 // Tells the new RenderWidget whether it is initially hidden.
321 IPC_STRUCT_MEMBER(bool, hidden)
322 IPC_STRUCT_END()
324 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_Params)
325 // Specifies the routing ID of the new RenderFrame object.
326 IPC_STRUCT_MEMBER(int, routing_id)
328 // The new frame should be created as a child of the object
329 // identified by |parent_routing_id| or as top level if that is
330 // MSG_ROUTING_NONE.
331 IPC_STRUCT_MEMBER(int, parent_routing_id)
333 // Identifies the previous sibling of the new frame, so that the new frame is
334 // inserted into the correct place in the frame tree. If this is
335 // MSG_ROUTING_NONE, the frame will be created as the leftmost child of its
336 // parent frame, in front of any other children.
337 IPC_STRUCT_MEMBER(int, previous_sibling_routing_id)
339 // If a valid |proxy_routing_id| is provided, the new frame will be
340 // configured to replace the proxy on commit.
341 IPC_STRUCT_MEMBER(int, proxy_routing_id)
343 // When the new frame has a parent, |replication_state| holds the new frame's
344 // properties replicated from the process rendering the parent frame, such as
345 // the new frame's sandbox flags.
346 IPC_STRUCT_MEMBER(content::FrameReplicationState, replication_state)
348 // Specifies properties for a new RenderWidget that will be attached to the
349 // new RenderFrame (if one is needed).
350 IPC_STRUCT_MEMBER(FrameMsg_NewFrame_WidgetParams, widget_params)
351 IPC_STRUCT_END()
353 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params)
354 IPC_STRUCT_MEMBER(GURL, url)
355 IPC_STRUCT_MEMBER(content::Referrer, referrer)
356 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition)
357 IPC_STRUCT_MEMBER(bool, should_replace_current_entry)
358 IPC_STRUCT_MEMBER(bool, user_gesture)
359 IPC_STRUCT_END()
361 IPC_STRUCT_BEGIN(FrameMsg_TextTrackSettings_Params)
362 // Text tracks on/off state
363 IPC_STRUCT_MEMBER(bool, text_tracks_enabled)
365 // Background color of the text track.
366 IPC_STRUCT_MEMBER(std::string, text_track_background_color)
368 // Font family of the text track text.
369 IPC_STRUCT_MEMBER(std::string, text_track_font_family)
371 // Font style of the text track text.
372 IPC_STRUCT_MEMBER(std::string, text_track_font_style)
374 // Font variant of the text track text.
375 IPC_STRUCT_MEMBER(std::string, text_track_font_variant)
377 // Color of the text track text.
378 IPC_STRUCT_MEMBER(std::string, text_track_text_color)
380 // Text shadow (edge style) of the text track text.
381 IPC_STRUCT_MEMBER(std::string, text_track_text_shadow)
383 // Size of the text track text.
384 IPC_STRUCT_MEMBER(std::string, text_track_text_size)
385 IPC_STRUCT_END()
387 #if defined(OS_MACOSX) || defined(OS_ANDROID)
388 // This message is used for supporting popup menus on Mac OS X and Android using
389 // native controls. See the FrameHostMsg_ShowPopup message.
390 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params)
391 // Position on the screen.
392 IPC_STRUCT_MEMBER(gfx::Rect, bounds)
394 // The height of each item in the menu.
395 IPC_STRUCT_MEMBER(int, item_height)
397 // The size of the font to use for those items.
398 IPC_STRUCT_MEMBER(double, item_font_size)
400 // The currently selected (displayed) item in the menu.
401 IPC_STRUCT_MEMBER(int, selected_item)
403 // The entire list of items in the popup menu.
404 IPC_STRUCT_MEMBER(std::vector<content::MenuItem>, popup_items)
406 // Whether items should be right-aligned.
407 IPC_STRUCT_MEMBER(bool, right_aligned)
409 // Whether this is a multi-select popup.
410 IPC_STRUCT_MEMBER(bool, allow_multiple_selection)
411 IPC_STRUCT_END()
412 #endif
414 // -----------------------------------------------------------------------------
415 // Messages sent from the browser to the renderer.
417 // Notifies the embedding frame that a new CompositorFrame is ready to be
418 // presented. When the frame finishes presenting, a matching
419 // FrameHostMsg_CompositorFrameSwappedACK should be sent back to the
420 // RenderViewHost that was produced the CompositorFrame.
422 // This is used in the ubercomp compositing path.
423 IPC_MESSAGE_ROUTED1(FrameMsg_CompositorFrameSwapped,
424 FrameMsg_CompositorFrameSwapped_Params /* params */)
426 IPC_MESSAGE_ROUTED4(FrameMsg_SetChildFrameSurface,
427 cc::SurfaceId /* surface_id */,
428 gfx::Size /* frame_size */,
429 float /* scale_factor */,
430 cc::SurfaceSequence /* sequence */)
432 // Notifies the embedding frame that the process rendering the child frame's
433 // contents has terminated.
434 IPC_MESSAGE_ROUTED0(FrameMsg_ChildFrameProcessGone)
436 // Sent in response to a FrameHostMsg_ContextMenu to let the renderer know that
437 // the menu has been closed.
438 IPC_MESSAGE_ROUTED1(FrameMsg_ContextMenuClosed,
439 content::CustomContextMenuContext /* custom_context */)
441 // Executes custom context menu action that was provided from Blink.
442 IPC_MESSAGE_ROUTED2(FrameMsg_CustomContextMenuAction,
443 content::CustomContextMenuContext /* custom_context */,
444 unsigned /* action */)
446 // Requests that the RenderFrame or RenderFrameProxy sets its opener to null.
447 IPC_MESSAGE_ROUTED0(FrameMsg_DisownOpener)
449 // Requests that the RenderFrame send back a response after waiting for the
450 // commit, activation and frame swap of the current DOM tree in blink.
451 IPC_MESSAGE_ROUTED1(FrameMsg_VisualStateRequest, uint64 /* id */)
453 // Instructs the renderer to create a new RenderFrame object.
454 IPC_MESSAGE_CONTROL1(FrameMsg_NewFrame, FrameMsg_NewFrame_Params /* params */)
456 // Instructs the renderer to create a new RenderFrameProxy object with
457 // |routing_id|. The new proxy should be created as a child of the object
458 // identified by |parent_routing_id| or as top level if that is
459 // MSG_ROUTING_NONE.
460 IPC_MESSAGE_CONTROL4(FrameMsg_NewFrameProxy,
461 int /* routing_id */,
462 int /* parent_routing_id */,
463 int /* render_view_routing_id */,
464 content::FrameReplicationState /* replication_state */)
466 // Tells the renderer to perform the specified navigation, interrupting any
467 // existing navigation.
468 IPC_MESSAGE_ROUTED3(FrameMsg_Navigate,
469 content::CommonNavigationParams, /* common_params */
470 content::StartNavigationParams, /* start_params */
471 content::RequestNavigationParams /* request_params */)
473 // Instructs the renderer to invoke the frame's beforeunload event handler.
474 // Expects the result to be returned via FrameHostMsg_BeforeUnload_ACK.
475 IPC_MESSAGE_ROUTED0(FrameMsg_BeforeUnload)
477 // Instructs the frame to swap out for a cross-site transition, including
478 // running the unload event handler and creating a RenderFrameProxy with the
479 // given |proxy_routing_id|. Expects a SwapOut_ACK message when finished.
480 IPC_MESSAGE_ROUTED3(FrameMsg_SwapOut,
481 int /* proxy_routing_id */,
482 bool /* is_loading */,
483 content::FrameReplicationState /* replication_state */)
485 // Instructs the frame to stop the load in progress, if any.
486 IPC_MESSAGE_ROUTED0(FrameMsg_Stop)
488 // A message sent to RenderFrameProxy to indicate that its corresponding
489 // RenderFrame has started loading a document.
490 IPC_MESSAGE_ROUTED0(FrameMsg_DidStartLoading)
492 // A message sent to RenderFrameProxy to indicate that its corresponding
493 // RenderFrame has completed loading.
494 IPC_MESSAGE_ROUTED0(FrameMsg_DidStopLoading)
496 // Request for the renderer to insert CSS into the frame.
497 IPC_MESSAGE_ROUTED1(FrameMsg_CSSInsertRequest,
498 std::string /* css */)
500 // Add message to the devtools console.
501 IPC_MESSAGE_ROUTED2(FrameMsg_AddMessageToConsole,
502 content::ConsoleMessageLevel /* level */,
503 std::string /* message */)
505 // Request for the renderer to execute JavaScript in the frame's context.
507 // javascript is the string containing the JavaScript to be executed in the
508 // target frame's context.
510 // If the third parameter is true the result is sent back to the browser using
511 // the message FrameHostMsg_JavaScriptExecuteResponse.
512 // FrameHostMsg_JavaScriptExecuteResponse is passed the ID parameter so that the
513 // host can uniquely identify the request.
514 IPC_MESSAGE_ROUTED3(FrameMsg_JavaScriptExecuteRequest,
515 base::string16, /* javascript */
516 int, /* ID */
517 bool /* if true, a reply is requested */)
519 // ONLY FOR TESTS: Same as above but adds a fake UserGestureindicator around
520 // execution. (crbug.com/408426)
521 IPC_MESSAGE_ROUTED4(FrameMsg_JavaScriptExecuteRequestForTests,
522 base::string16, /* javascript */
523 int, /* ID */
524 bool, /* if true, a reply is requested */
525 bool /* if true, a user gesture indicator is created */)
527 // Same as FrameMsg_JavaScriptExecuteRequest above except the script is
528 // run in the isolated world specified by the fourth parameter.
529 IPC_MESSAGE_ROUTED4(FrameMsg_JavaScriptExecuteRequestInIsolatedWorld,
530 base::string16, /* javascript */
531 int, /* ID */
532 bool, /* if true, a reply is requested */
533 int /* world_id */)
535 // Selects between the given start and end offsets in the currently focused
536 // editable field.
537 IPC_MESSAGE_ROUTED2(FrameMsg_SetEditableSelectionOffsets,
538 int /* start */,
539 int /* end */)
541 // Requests a navigation to the supplied markup, in an iframe with sandbox
542 // attributes.
543 IPC_MESSAGE_ROUTED1(FrameMsg_SetupTransitionView,
544 std::string /* markup */)
546 // Tells the renderer to hide the elements specified by the supplied CSS
547 // selector, and activates any exiting-transition stylesheets.
548 IPC_MESSAGE_ROUTED2(FrameMsg_BeginExitTransition,
549 std::string /* css_selector */,
550 bool /* exit_to_native_app */)
552 // Tell the renderer to revert the exit transition done before
553 IPC_MESSAGE_ROUTED0(FrameMsg_RevertExitTransition)
555 // Tell the renderer to hide transition elements.
556 IPC_MESSAGE_ROUTED1(FrameMsg_HideTransitionElements,
557 std::string /* css_selector */)
559 // Tell the renderer to hide transition elements.
560 IPC_MESSAGE_ROUTED1(FrameMsg_ShowTransitionElements,
561 std::string /* css_selector */)
563 // Tells the renderer to reload the frame, optionally ignoring the cache while
564 // doing so.
565 IPC_MESSAGE_ROUTED1(FrameMsg_Reload,
566 bool /* ignore_cache */)
568 // Notifies the color chooser client that the user selected a color.
569 IPC_MESSAGE_ROUTED2(FrameMsg_DidChooseColorResponse, unsigned, SkColor)
571 // Notifies the color chooser client that the color chooser has ended.
572 IPC_MESSAGE_ROUTED1(FrameMsg_DidEndColorChooser, unsigned)
574 // Notifies the corresponding RenderFrameProxy object to replace itself with the
575 // RenderFrame object it is associated with.
576 IPC_MESSAGE_ROUTED0(FrameMsg_DeleteProxy)
578 // Request the text surrounding the selection with a |max_length|. The response
579 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse.
580 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest,
581 size_t /* max_length */)
583 // Tells the renderer to insert a link to the specified stylesheet. This is
584 // needed to support navigation transitions.
585 IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL, std::string)
587 // Change the accessibility mode in the renderer process.
588 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode,
589 AccessibilityMode)
591 // Dispatch a load event in the iframe element containing this frame.
592 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad)
594 // Notifies the frame that its parent has changed the frame's sandbox flags.
595 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateSandboxFlags, blink::WebSandboxFlags)
597 // Update a proxy's window.name property. Used when the frame's name is
598 // changed in another process.
599 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateName, std::string /* name */)
601 // Update a proxy's replicated origin. Used when the frame is navigated to a
602 // new origin.
603 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateOrigin, url::Origin /* origin */)
605 // Send to the RenderFrame to set text tracks state and style settings.
606 // Sent for top-level frames.
607 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings,
608 FrameMsg_TextTrackSettings_Params /* params */)
610 // Posts a message from a frame in another process to the current renderer.
611 IPC_MESSAGE_ROUTED1(FrameMsg_PostMessageEvent, FrameMsg_PostMessage_Params)
613 #if defined(OS_ANDROID)
615 // External popup menus.
616 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems,
617 bool /* user canceled the popup */,
618 std::vector<int> /* selected indices */)
620 #elif defined(OS_MACOSX)
622 // External popup menus.
623 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem,
624 int /* selected index, -1 means no selection */)
626 #endif
628 // PlzNavigate
629 // Tells the renderer that a navigation is ready to commit. The renderer should
630 // request |stream_url| to get access to the stream containing the body of the
631 // response.
632 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation,
633 content::ResourceResponseHead, /* response */
634 GURL, /* stream_url */
635 content::CommonNavigationParams, /* common_params */
636 content::RequestNavigationParams /* request_params */)
638 // PlzNavigate
639 // Tells the renderer that a navigation failed with the error code |error_code|
640 // and that the renderer should display an appropriate error page.
641 IPC_MESSAGE_ROUTED4(FrameMsg_FailedNavigation,
642 content::CommonNavigationParams, /* common_params */
643 content::RequestNavigationParams, /* request_params */
644 bool, /* stale_copy_in_cache */
645 int /* error_code */)
647 #if defined(ENABLE_PLUGINS)
648 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist.
649 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist,
650 std::set<GURL> /* origin_whitelist */)
651 #endif // defined(ENABLE_PLUGINS)
653 // -----------------------------------------------------------------------------
654 // Messages sent from the renderer to the browser.
656 // Blink and JavaScript error messages to log to the console
657 // or debugger UI.
658 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole,
659 int32, /* log level */
660 base::string16, /* msg */
661 int32, /* line number */
662 base::string16 /* source id */ )
664 // Sent by the renderer when a child frame is created in the renderer.
666 // Each of these messages will have a corresponding FrameHostMsg_Detach message
667 // sent when the frame is detached from the DOM.
668 IPC_SYNC_MESSAGE_CONTROL4_1(FrameHostMsg_CreateChildFrame,
669 int32 /* parent_routing_id */,
670 blink::WebTreeScopeType /* scope */,
671 std::string /* frame_name */,
672 blink::WebSandboxFlags /* sandbox flags */,
673 int32 /* new_routing_id */)
675 // Sent by the renderer to the parent RenderFrameHost when a child frame is
676 // detached from the DOM.
677 IPC_MESSAGE_ROUTED0(FrameHostMsg_Detach)
679 // Indicates the renderer process is gone. This actually is sent by the
680 // browser process to itself, but keeps the interface cleaner.
681 IPC_MESSAGE_ROUTED2(FrameHostMsg_RenderProcessGone,
682 int, /* this really is base::TerminationStatus */
683 int /* exit_code */)
685 // Sent by the renderer when the frame becomes focused.
686 IPC_MESSAGE_ROUTED0(FrameHostMsg_FrameFocused)
688 // Sent when the renderer starts a provisional load for a frame.
689 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidStartProvisionalLoadForFrame,
690 GURL /* url */)
692 // Sent when the renderer fails a provisional load with an error.
693 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFailProvisionalLoadWithError,
694 FrameHostMsg_DidFailProvisionalLoadWithError_Params)
696 // Notifies the browser that a frame in the view has changed. This message
697 // has a lot of parameters and is packed/unpacked by functions defined in
698 // render_messages.h.
699 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidCommitProvisionalLoad,
700 FrameHostMsg_DidCommitProvisionalLoad_Params)
702 // Notifies the browser that a document has been loaded.
703 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFinishDocumentLoad)
705 IPC_MESSAGE_ROUTED4(FrameHostMsg_DidFailLoadWithError,
706 GURL /* validated_url */,
707 int /* error_code */,
708 base::string16 /* error_description */,
709 bool /* was_ignored_by_handler */)
711 // Sent when the renderer decides to ignore a navigation.
712 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidDropNavigation)
714 // Sent when the renderer starts loading the page. |to_different_document| will
715 // be true unless the load is a fragment navigation, or triggered by
716 // history.pushState/replaceState.
717 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidStartLoading,
718 bool /* to_different_document */)
720 // Sent when the renderer is done loading a page.
721 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidStopLoading)
723 // Sent when the frame changes its window.name.
724 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeName, std::string /* name */)
726 // Sent when the renderer changed the progress of a load.
727 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress,
728 double /* load_progress */)
730 // Requests that the given URL be opened in the specified manner.
731 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params)
733 // Notifies the browser that a frame finished loading.
734 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad,
735 GURL /* validated_url */)
737 // Sent when after the onload handler has been invoked for the document
738 // in this frame. Sent for top-level frames. |report_type| and |ui_timestamp|
739 // are used to report navigation metrics starting on the ui input event that
740 // triggered the navigation timestamp.
741 IPC_MESSAGE_ROUTED2(FrameHostMsg_DocumentOnLoadCompleted,
742 FrameMsg_UILoadMetricsReportType::Value /* report_type */,
743 base::TimeTicks /* ui_timestamp */)
745 // Notifies that the initial empty document of a view has been accessed.
746 // After this, it is no longer safe to show a pending navigation's URL without
747 // making a URL spoof possible.
748 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidAccessInitialDocument)
750 // Sent when the frame sets its opener to null, disowning it for the lifetime of
751 // the window. Sent for top-level frames.
752 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidDisownOpener)
754 // Notifies the browser that a page id was assigned.
755 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidAssignPageId,
756 int32 /* page_id */)
758 // Notifies the browser that sandbox flags have changed for a subframe of this
759 // frame.
760 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeSandboxFlags,
761 int32 /* subframe_routing_id */,
762 blink::WebSandboxFlags /* updated_flags */)
764 // Changes the title for the page in the UI when the page is navigated or the
765 // title changes. Sent for top-level frames.
766 IPC_MESSAGE_ROUTED2(FrameHostMsg_UpdateTitle,
767 base::string16 /* title */,
768 blink::WebTextDirection /* title direction */)
770 // Change the encoding name of the page in UI when the page has detected
771 // proper encoding name. Sent for top-level frames.
772 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateEncoding,
773 std::string /* new encoding name */)
775 // Following message is used to communicate the values received by the
776 // callback binding the JS to Cpp.
777 // An instance of browser that has an automation host listening to it can
778 // have a javascript send a native value (string, number, boolean) to the
779 // listener in Cpp. (DomAutomationController)
780 IPC_MESSAGE_ROUTED2(FrameHostMsg_DomOperationResponse,
781 std::string /* json_string */,
782 int /* automation_id */)
784 // Used to set a cookie. The cookie is set asynchronously, but will be
785 // available to a subsequent FrameHostMsg_GetCookies request.
786 IPC_MESSAGE_CONTROL4(FrameHostMsg_SetCookie,
787 int /* render_frame_id */,
788 GURL /* url */,
789 GURL /* first_party_for_cookies */,
790 std::string /* cookie */)
792 // Used to get cookies for the given URL. This may block waiting for a
793 // previous SetCookie message to be processed.
794 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_GetCookies,
795 int /* render_frame_id */,
796 GURL /* url */,
797 GURL /* first_party_for_cookies */,
798 std::string /* cookies */)
800 // Used to check if cookies are enabled for the given URL. This may block
801 // waiting for a previous SetCookie message to be processed.
802 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_CookiesEnabled,
803 int /* render_frame_id */,
804 GURL /* url */,
805 GURL /* first_party_for_cookies */,
806 bool /* cookies_enabled */)
808 #if defined(ENABLE_PLUGINS)
809 // Notification sent from a renderer to the browser that a Pepper plugin
810 // instance is created in the DOM.
811 IPC_MESSAGE_ROUTED0(FrameHostMsg_PepperInstanceCreated)
813 // Notification sent from a renderer to the browser that a Pepper plugin
814 // instance is deleted from the DOM.
815 IPC_MESSAGE_ROUTED0(FrameHostMsg_PepperInstanceDeleted)
817 // Sent to the browser when the renderer detects it is blocked on a pepper
818 // plugin message for too long. This is also sent when it becomes unhung
819 // (according to the value of is_hung). The browser can give the user the
820 // option of killing the plugin.
821 IPC_MESSAGE_ROUTED3(FrameHostMsg_PepperPluginHung,
822 int /* plugin_child_id */,
823 base::FilePath /* path */,
824 bool /* is_hung */)
826 // Sent by the renderer process to indicate that a plugin instance has crashed.
827 // Note: |plugin_pid| should not be trusted. The corresponding process has
828 // probably died. Moreover, the ID may have been reused by a new process. Any
829 // usage other than displaying it in a prompt to the user is very likely to be
830 // wrong.
831 IPC_MESSAGE_ROUTED2(FrameHostMsg_PluginCrashed,
832 base::FilePath /* plugin_path */,
833 base::ProcessId /* plugin_pid */)
835 // Return information about a plugin for the given URL and MIME
836 // type. If there is no matching plugin, |found| is false.
837 // |actual_mime_type| is the actual mime type supported by the
838 // found plugin.
839 IPC_SYNC_MESSAGE_CONTROL4_3(FrameHostMsg_GetPluginInfo,
840 int /* render_frame_id */,
841 GURL /* url */,
842 GURL /* page_url */,
843 std::string /* mime_type */,
844 bool /* found */,
845 content::WebPluginInfo /* plugin info */,
846 std::string /* actual_mime_type */)
848 // A renderer sends this to the browser process when it wants to temporarily
849 // whitelist an origin's plugin content as essential. This temporary whitelist
850 // is specific to a top level frame, and is cleared when the whitelisting
851 // RenderFrame is destroyed.
852 IPC_MESSAGE_ROUTED1(FrameHostMsg_PluginContentOriginAllowed,
853 GURL /* content_origin */)
854 #endif // defined(ENABLE_PLUGINS)
856 // A renderer sends this to the browser process when it wants to
857 // create a plugin. The browser will create the plugin process if
858 // necessary, and will return a handle to the channel on success.
859 // On error an empty string is returned.
860 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin,
861 int /* render_frame_id */,
862 GURL /* url */,
863 GURL /* page_url */,
864 std::string /* mime_type */,
865 IPC::ChannelHandle /* channel_handle */,
866 content::WebPluginInfo /* info */)
868 // Acknowledge that we presented an ubercomp frame.
870 // See FrameMsg_CompositorFrameSwapped
871 IPC_MESSAGE_ROUTED1(FrameHostMsg_CompositorFrameSwappedACK,
872 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */)
874 // Satisfies a Surface destruction dependency associated with |sequence|.
875 IPC_MESSAGE_ROUTED1(FrameHostMsg_SatisfySequence,
876 cc::SurfaceSequence /* sequence */)
878 // Creates a destruction dependency for the Surface specified by the given
879 // |surface_id|.
880 IPC_MESSAGE_ROUTED2(FrameHostMsg_RequireSequence,
881 cc::SurfaceId /* surface_id */,
882 cc::SurfaceSequence /* sequence */)
884 // Provides the result from handling BeforeUnload. |proceed| matches the return
885 // value of the frame's beforeunload handler: true if the user decided to
886 // proceed with leaving the page.
887 IPC_MESSAGE_ROUTED3(FrameHostMsg_BeforeUnload_ACK,
888 bool /* proceed */,
889 base::TimeTicks /* before_unload_start_time */,
890 base::TimeTicks /* before_unload_end_time */)
892 // Indicates that the current frame has swapped out, after a SwapOut message.
893 IPC_MESSAGE_ROUTED0(FrameHostMsg_SwapOut_ACK)
895 IPC_MESSAGE_ROUTED1(FrameHostMsg_ReclaimCompositorResources,
896 FrameHostMsg_ReclaimCompositorResources_Params /* params */)
898 // Forwards an input event to a child.
899 // TODO(nick): Temporary bridge, revisit once the browser process can route
900 // input directly to subframes. http://crbug.com/339659
901 IPC_MESSAGE_ROUTED1(FrameHostMsg_ForwardInputEvent,
902 IPC::WebInputEventPointer /* event */)
904 // Used to tell the parent that the user right clicked on an area of the
905 // content area, and a context menu should be shown for it. The params
906 // object contains information about the node(s) that were selected when the
907 // user right clicked.
908 IPC_MESSAGE_ROUTED1(FrameHostMsg_ContextMenu, content::ContextMenuParams)
910 // Initial drawing parameters for a child frame that has been swapped out to
911 // another process.
912 IPC_MESSAGE_ROUTED2(FrameHostMsg_InitializeChildFrame,
913 gfx::Rect /* frame_rect */,
914 float /* scale_factor */)
916 // Response for FrameMsg_JavaScriptExecuteRequest, sent when a reply was
917 // requested. The ID is the parameter supplied to
918 // FrameMsg_JavaScriptExecuteRequest. The result has the value returned by the
919 // script as its only element, one of Null, Boolean, Integer, Real, Date, or
920 // String.
921 IPC_MESSAGE_ROUTED2(FrameHostMsg_JavaScriptExecuteResponse,
922 int /* id */,
923 base::ListValue /* result */)
925 // A request to run a JavaScript dialog.
926 IPC_SYNC_MESSAGE_ROUTED4_2(FrameHostMsg_RunJavaScriptMessage,
927 base::string16 /* in - alert message */,
928 base::string16 /* in - default prompt */,
929 GURL /* in - originating page URL */,
930 content::JavaScriptMessageType /* in - type */,
931 bool /* out - success */,
932 base::string16 /* out - user_input field */)
934 // Displays a dialog to confirm that the user wants to navigate away from the
935 // page. Replies true if yes, and false otherwise. The reply string is ignored,
936 // but is included so that we can use OnJavaScriptMessageBoxClosed.
937 IPC_SYNC_MESSAGE_ROUTED3_2(FrameHostMsg_RunBeforeUnloadConfirm,
938 GURL, /* in - originating frame URL */
939 base::string16 /* in - alert message */,
940 bool /* in - is a reload */,
941 bool /* out - success */,
942 base::string16 /* out - This is ignored.*/)
944 // Asks the browser to open the color chooser.
945 IPC_MESSAGE_ROUTED3(FrameHostMsg_OpenColorChooser,
946 int /* id */,
947 SkColor /* color */,
948 std::vector<content::ColorSuggestion> /* suggestions */)
950 // Asks the browser to end the color chooser.
951 IPC_MESSAGE_ROUTED1(FrameHostMsg_EndColorChooser, int /* id */)
953 // Change the selected color in the color chooser.
954 IPC_MESSAGE_ROUTED2(FrameHostMsg_SetSelectedColorInColorChooser,
955 int /* id */,
956 SkColor /* color */)
958 // Notifies the browser that media has started/stopped playing.
959 IPC_MESSAGE_ROUTED4(FrameHostMsg_MediaPlayingNotification,
960 int64 /* player_cookie, distinguishes instances */,
961 bool /* has_video */,
962 bool /* has_audio */,
963 bool /* is_remote */)
965 IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaPausedNotification,
966 int64 /* player_cookie, distinguishes instances */)
968 // Notify browser the theme color has been changed.
969 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeThemeColor,
970 SkColor /* theme_color */)
972 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and
973 // |endOffset| are the offsets of the selection in the returned |content|.
974 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse,
975 base::string16, /* content */
976 size_t, /* startOffset */
977 size_t /* endOffset */)
979 // Register a new handler for URL requests with the given scheme.
980 IPC_MESSAGE_ROUTED4(FrameHostMsg_RegisterProtocolHandler,
981 std::string /* scheme */,
982 GURL /* url */,
983 base::string16 /* title */,
984 bool /* user_gesture */)
986 // Unregister the registered handler for URL requests with the given scheme.
987 IPC_MESSAGE_ROUTED3(FrameHostMsg_UnregisterProtocolHandler,
988 std::string /* scheme */,
989 GURL /* url */,
990 bool /* user_gesture */)
992 // PlzNavigate
993 // Tells the browser to perform a navigation.
994 IPC_MESSAGE_ROUTED3(FrameHostMsg_BeginNavigation,
995 content::CommonNavigationParams,
996 content::BeginNavigationParams,
997 scoped_refptr<content::ResourceRequestBody>)
999 // Sent once a paint happens after the first non empty layout. In other words
1000 // after the frame has painted something.
1001 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint)
1003 // Sent as a response to FrameMsg_VisualStateRequest.
1004 // The message is delivered using RenderWidget::QueueMessage.
1005 IPC_MESSAGE_ROUTED1(FrameHostMsg_VisualStateResponse, uint64 /* id */)
1007 // Puts the browser into "tab fullscreen" mode for the sending renderer.
1008 // See the comment in chrome/browser/ui/browser.h for more details.
1009 IPC_MESSAGE_ROUTED1(FrameHostMsg_ToggleFullscreen, bool /* enter_fullscreen */)
1011 // Dispatch a load event for this frame in the iframe element of an
1012 // out-of-process parent frame.
1013 IPC_MESSAGE_ROUTED0(FrameHostMsg_DispatchLoad)
1015 // Sent to the browser from a frame proxy to post a message to the frame's
1016 // active renderer.
1017 IPC_MESSAGE_ROUTED1(FrameHostMsg_RouteMessageEvent,
1018 FrameMsg_PostMessage_Params)
1020 #if defined(OS_MACOSX) || defined(OS_ANDROID)
1022 // Message to show/hide a popup menu using native controls.
1023 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
1024 FrameHostMsg_ShowPopup_Params)
1025 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
1027 #endif