| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 page rendering. | 5 // IPC messages for page rendering. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
| 9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "cc/output/begin_frame_args.h" | 11 #include "cc/output/begin_frame_args.h" |
| 12 #include "cc/output/compositor_frame.h" | 12 #include "cc/output/compositor_frame.h" |
| 13 #include "cc/output/compositor_frame_ack.h" | 13 #include "cc/output/compositor_frame_ack.h" |
| 14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 15 #include "content/common/content_param_traits.h" | 15 #include "content/common/content_param_traits.h" |
| 16 #include "content/common/cookie_data.h" | 16 #include "content/common/cookie_data.h" |
| 17 #include "content/common/navigation_gesture.h" | 17 #include "content/common/navigation_gesture.h" |
| 18 #include "content/common/pepper_renderer_instance_data.h" | 18 #include "content/common/pepper_renderer_instance_data.h" |
| 19 #include "content/common/view_message_enums.h" | 19 #include "content/common/view_message_enums.h" |
| 20 #include "content/common/webplugin_geometry.h" | 20 #include "content/common/webplugin_geometry.h" |
| 21 #include "content/port/common/input_event_ack_state.h" | 21 #include "content/port/common/input_event_ack_state.h" |
| 22 #include "content/public/common/color_suggestion.h" | 22 #include "content/public/common/color_suggestion.h" |
| 23 #include "content/public/common/common_param_traits.h" | 23 #include "content/public/common/common_param_traits.h" |
| 24 #include "content/public/common/favicon_url.h" | 24 #include "content/public/common/favicon_url.h" |
| 25 #include "content/public/common/file_chooser_params.h" | 25 #include "content/public/common/file_chooser_params.h" |
| 26 #include "content/public/common/frame_navigate_params.h" | |
| 27 #include "content/public/common/javascript_message_type.h" | 26 #include "content/public/common/javascript_message_type.h" |
| 28 #include "content/public/common/menu_item.h" | 27 #include "content/public/common/menu_item.h" |
| 29 #include "content/public/common/page_state.h" | 28 #include "content/public/common/page_state.h" |
| 30 #include "content/public/common/page_zoom.h" | 29 #include "content/public/common/page_zoom.h" |
| 31 #include "content/public/common/referrer.h" | 30 #include "content/public/common/referrer.h" |
| 32 #include "content/public/common/renderer_preferences.h" | 31 #include "content/public/common/renderer_preferences.h" |
| 33 #include "content/public/common/stop_find_action.h" | 32 #include "content/public/common/stop_find_action.h" |
| 34 #include "content/public/common/three_d_api_types.h" | 33 #include "content/public/common/three_d_api_types.h" |
| 35 #include "content/public/common/window_container_type.h" | 34 #include "content/public/common/window_container_type.h" |
| 36 #include "content/common/date_time_suggestion.h" | 35 #include "content/common/date_time_suggestion.h" |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams) | 176 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams) |
| 178 IPC_STRUCT_TRAITS_MEMBER(mode) | 177 IPC_STRUCT_TRAITS_MEMBER(mode) |
| 179 IPC_STRUCT_TRAITS_MEMBER(title) | 178 IPC_STRUCT_TRAITS_MEMBER(title) |
| 180 IPC_STRUCT_TRAITS_MEMBER(default_file_name) | 179 IPC_STRUCT_TRAITS_MEMBER(default_file_name) |
| 181 IPC_STRUCT_TRAITS_MEMBER(accept_types) | 180 IPC_STRUCT_TRAITS_MEMBER(accept_types) |
| 182 #if defined(OS_ANDROID) | 181 #if defined(OS_ANDROID) |
| 183 IPC_STRUCT_TRAITS_MEMBER(capture) | 182 IPC_STRUCT_TRAITS_MEMBER(capture) |
| 184 #endif | 183 #endif |
| 185 IPC_STRUCT_TRAITS_END() | 184 IPC_STRUCT_TRAITS_END() |
| 186 | 185 |
| 187 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams) | |
| 188 IPC_STRUCT_TRAITS_MEMBER(page_id) | |
| 189 IPC_STRUCT_TRAITS_MEMBER(url) | |
| 190 IPC_STRUCT_TRAITS_MEMBER(base_url) | |
| 191 IPC_STRUCT_TRAITS_MEMBER(referrer) | |
| 192 IPC_STRUCT_TRAITS_MEMBER(transition) | |
| 193 IPC_STRUCT_TRAITS_MEMBER(redirects) | |
| 194 IPC_STRUCT_TRAITS_MEMBER(should_update_history) | |
| 195 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) | |
| 196 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) | |
| 197 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type) | |
| 198 IPC_STRUCT_TRAITS_MEMBER(socket_address) | |
| 199 IPC_STRUCT_TRAITS_END() | |
| 200 | |
| 201 IPC_STRUCT_TRAITS_BEGIN(content::PepperRendererInstanceData) | 186 IPC_STRUCT_TRAITS_BEGIN(content::PepperRendererInstanceData) |
| 202 IPC_STRUCT_TRAITS_MEMBER(render_process_id) | 187 IPC_STRUCT_TRAITS_MEMBER(render_process_id) |
| 203 IPC_STRUCT_TRAITS_MEMBER(render_frame_id) | 188 IPC_STRUCT_TRAITS_MEMBER(render_frame_id) |
| 204 IPC_STRUCT_TRAITS_MEMBER(document_url) | 189 IPC_STRUCT_TRAITS_MEMBER(document_url) |
| 205 IPC_STRUCT_TRAITS_MEMBER(plugin_url) | 190 IPC_STRUCT_TRAITS_MEMBER(plugin_url) |
| 206 IPC_STRUCT_TRAITS_END() | 191 IPC_STRUCT_TRAITS_END() |
| 207 | 192 |
| 208 IPC_STRUCT_TRAITS_BEGIN(content::RendererPreferences) | 193 IPC_STRUCT_TRAITS_BEGIN(content::RendererPreferences) |
| 209 IPC_STRUCT_TRAITS_MEMBER(can_accept_load_drops) | 194 IPC_STRUCT_TRAITS_MEMBER(can_accept_load_drops) |
| 210 IPC_STRUCT_TRAITS_MEMBER(should_antialias_text) | 195 IPC_STRUCT_TRAITS_MEMBER(should_antialias_text) |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 | 339 |
| 355 IPC_STRUCT_BEGIN(ViewHostMsg_DateTimeDialogValue_Params) | 340 IPC_STRUCT_BEGIN(ViewHostMsg_DateTimeDialogValue_Params) |
| 356 IPC_STRUCT_MEMBER(ui::TextInputType, dialog_type) | 341 IPC_STRUCT_MEMBER(ui::TextInputType, dialog_type) |
| 357 IPC_STRUCT_MEMBER(double, dialog_value) | 342 IPC_STRUCT_MEMBER(double, dialog_value) |
| 358 IPC_STRUCT_MEMBER(double, minimum) | 343 IPC_STRUCT_MEMBER(double, minimum) |
| 359 IPC_STRUCT_MEMBER(double, maximum) | 344 IPC_STRUCT_MEMBER(double, maximum) |
| 360 IPC_STRUCT_MEMBER(double, step) | 345 IPC_STRUCT_MEMBER(double, step) |
| 361 IPC_STRUCT_MEMBER(std::vector<content::DateTimeSuggestion>, suggestions) | 346 IPC_STRUCT_MEMBER(std::vector<content::DateTimeSuggestion>, suggestions) |
| 362 IPC_STRUCT_END() | 347 IPC_STRUCT_END() |
| 363 | 348 |
| 364 // Parameters structure for ViewHostMsg_FrameNavigate, which has too many data | |
| 365 // parameters to be reasonably put in a predefined IPC message. | |
| 366 IPC_STRUCT_BEGIN_WITH_PARENT(ViewHostMsg_FrameNavigate_Params, | |
| 367 content::FrameNavigateParams) | |
| 368 IPC_STRUCT_TRAITS_PARENT(content::FrameNavigateParams) | |
| 369 // The frame ID for this navigation. The frame ID uniquely identifies the | |
| 370 // frame the navigation happened in for a given renderer. | |
| 371 IPC_STRUCT_MEMBER(int64, frame_id) | |
| 372 | |
| 373 // The WebFrame's uniqueName(). | |
| 374 IPC_STRUCT_MEMBER(base::string16, frame_unique_name) | |
| 375 | |
| 376 // Information regarding the security of the connection (empty if the | |
| 377 // connection was not secure). | |
| 378 IPC_STRUCT_MEMBER(std::string, security_info) | |
| 379 | |
| 380 // The gesture that initiated this navigation. | |
| 381 IPC_STRUCT_MEMBER(content::NavigationGesture, gesture) | |
| 382 | |
| 383 // True if this was a post request. | |
| 384 IPC_STRUCT_MEMBER(bool, is_post) | |
| 385 | |
| 386 // The POST body identifier. -1 if it doesn't exist. | |
| 387 IPC_STRUCT_MEMBER(int64, post_id) | |
| 388 | |
| 389 // Whether the frame navigation resulted in no change to the documents within | |
| 390 // the page. For example, the navigation may have just resulted in scrolling | |
| 391 // to a named anchor. | |
| 392 IPC_STRUCT_MEMBER(bool, was_within_same_page) | |
| 393 | |
| 394 // The status code of the HTTP request. | |
| 395 IPC_STRUCT_MEMBER(int, http_status_code) | |
| 396 | |
| 397 // True if the connection was proxied. In this case, socket_address | |
| 398 // will represent the address of the proxy, rather than the remote host. | |
| 399 IPC_STRUCT_MEMBER(bool, was_fetched_via_proxy) | |
| 400 | |
| 401 // Serialized history item state to store in the navigation entry. | |
| 402 IPC_STRUCT_MEMBER(content::PageState, page_state) | |
| 403 | |
| 404 // Original request's URL. | |
| 405 IPC_STRUCT_MEMBER(GURL, original_request_url) | |
| 406 | |
| 407 // User agent override used to navigate. | |
| 408 IPC_STRUCT_MEMBER(bool, is_overriding_user_agent) | |
| 409 | |
| 410 // Notifies the browser that for this navigation, the session history was | |
| 411 // successfully cleared. | |
| 412 IPC_STRUCT_MEMBER(bool, history_list_was_cleared) | |
| 413 IPC_STRUCT_END() | |
| 414 | |
| 415 IPC_STRUCT_BEGIN(ViewHostMsg_OpenURL_Params) | 349 IPC_STRUCT_BEGIN(ViewHostMsg_OpenURL_Params) |
| 416 IPC_STRUCT_MEMBER(GURL, url) | 350 IPC_STRUCT_MEMBER(GURL, url) |
| 417 IPC_STRUCT_MEMBER(content::Referrer, referrer) | 351 IPC_STRUCT_MEMBER(content::Referrer, referrer) |
| 418 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) | 352 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) |
| 419 IPC_STRUCT_MEMBER(int64, frame_id) | 353 IPC_STRUCT_MEMBER(int64, frame_id) |
| 420 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) | 354 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) |
| 421 IPC_STRUCT_MEMBER(bool, user_gesture) | 355 IPC_STRUCT_MEMBER(bool, user_gesture) |
| 422 IPC_STRUCT_END() | 356 IPC_STRUCT_END() |
| 423 | 357 |
| 424 IPC_STRUCT_BEGIN(ViewHostMsg_SelectionBounds_Params) | 358 IPC_STRUCT_BEGIN(ViewHostMsg_SelectionBounds_Params) |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 | 483 |
| 550 // The latency information for the frame. Only valid when accelerated | 484 // The latency information for the frame. Only valid when accelerated |
| 551 // compositing is disabled. | 485 // compositing is disabled. |
| 552 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) | 486 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) |
| 553 IPC_STRUCT_END() | 487 IPC_STRUCT_END() |
| 554 | 488 |
| 555 IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params) | 489 IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params) |
| 556 // The page_id for this navigation, or -1 if it is a new navigation. Back, | 490 // The page_id for this navigation, or -1 if it is a new navigation. Back, |
| 557 // Forward, and Reload navigations should have a valid page_id. If the load | 491 // Forward, and Reload navigations should have a valid page_id. If the load |
| 558 // succeeds, then this page_id will be reflected in the resultant | 492 // succeeds, then this page_id will be reflected in the resultant |
| 559 // ViewHostMsg_FrameNavigate message. | 493 // FrameHostMsg_DidCommitProvisionalLoad message. |
| 560 IPC_STRUCT_MEMBER(int32, page_id) | 494 IPC_STRUCT_MEMBER(int32, page_id) |
| 561 | 495 |
| 562 // If page_id is -1, then pending_history_list_offset will also be -1. | 496 // If page_id is -1, then pending_history_list_offset will also be -1. |
| 563 // Otherwise, it contains the offset into the history list corresponding to | 497 // Otherwise, it contains the offset into the history list corresponding to |
| 564 // the current navigation. | 498 // the current navigation. |
| 565 IPC_STRUCT_MEMBER(int, pending_history_list_offset) | 499 IPC_STRUCT_MEMBER(int, pending_history_list_offset) |
| 566 | 500 |
| 567 // Informs the RenderView of where its current page contents reside in | 501 // Informs the RenderView of where its current page contents reside in |
| 568 // session history and the total size of the session history list. | 502 // session history and the total size of the session history list. |
| 569 IPC_STRUCT_MEMBER(int, current_history_list_offset) | 503 IPC_STRUCT_MEMBER(int, current_history_list_offset) |
| (...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1404 // Send in response to a ViewMsg_UpdateScreenRects so that the renderer can | 1338 // Send in response to a ViewMsg_UpdateScreenRects so that the renderer can |
| 1405 // throttle these messages. | 1339 // throttle these messages. |
| 1406 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateScreenRects_ACK) | 1340 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateScreenRects_ACK) |
| 1407 | 1341 |
| 1408 // Sent by the renderer process to request that the browser move the view. | 1342 // Sent by the renderer process to request that the browser move the view. |
| 1409 // This corresponds to the window.resizeTo() and window.moveTo() APIs, and | 1343 // This corresponds to the window.resizeTo() and window.moveTo() APIs, and |
| 1410 // the browser may ignore this message. | 1344 // the browser may ignore this message. |
| 1411 IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestMove, | 1345 IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestMove, |
| 1412 gfx::Rect /* position */) | 1346 gfx::Rect /* position */) |
| 1413 | 1347 |
| 1414 // Notifies the browser that a frame in the view has changed. This message | |
| 1415 // has a lot of parameters and is packed/unpacked by functions defined in | |
| 1416 // render_messages.h. | |
| 1417 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameNavigate, | |
| 1418 ViewHostMsg_FrameNavigate_Params) | |
| 1419 | |
| 1420 // Message to show a popup menu using native cocoa controls (Mac only). | 1348 // Message to show a popup menu using native cocoa controls (Mac only). |
| 1421 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowPopup, | 1349 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowPopup, |
| 1422 ViewHostMsg_ShowPopup_Params) | 1350 ViewHostMsg_ShowPopup_Params) |
| 1423 | 1351 |
| 1424 // Response from ViewMsg_ScriptEvalRequest. The ID is the parameter supplied | 1352 // Response from ViewMsg_ScriptEvalRequest. The ID is the parameter supplied |
| 1425 // to ViewMsg_ScriptEvalRequest. The result has the value returned by the | 1353 // to ViewMsg_ScriptEvalRequest. The result has the value returned by the |
| 1426 // script as its only element, one of Null, Boolean, Integer, Real, Date, or | 1354 // script as its only element, one of Null, Boolean, Integer, Real, Date, or |
| 1427 // String. | 1355 // String. |
| 1428 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse, | 1356 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse, |
| 1429 int /* id */, | 1357 int /* id */, |
| (...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2255 // synchronously (see crbug.com/120597). This IPC message sends the character | 2183 // synchronously (see crbug.com/120597). This IPC message sends the character |
| 2256 // bounds after every composition change to always have correct bound info. | 2184 // bounds after every composition change to always have correct bound info. |
| 2257 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2185 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
| 2258 gfx::Range /* composition range */, | 2186 gfx::Range /* composition range */, |
| 2259 std::vector<gfx::Rect> /* character bounds */) | 2187 std::vector<gfx::Rect> /* character bounds */) |
| 2260 #endif | 2188 #endif |
| 2261 | 2189 |
| 2262 // Adding a new message? Stick to the sort order above: first platform | 2190 // Adding a new message? Stick to the sort order above: first platform |
| 2263 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2191 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 2264 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2192 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |