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" | 26 #include "content/public/common/frame_navigate_params.h" |
Charlie Reis
2014/02/05 23:30:37
Can this be removed now?
nasko
2014/02/06 01:55:13
It required adding the header in other files, thou
| |
27 #include "content/public/common/javascript_message_type.h" | 27 #include "content/public/common/javascript_message_type.h" |
28 #include "content/public/common/menu_item.h" | 28 #include "content/public/common/menu_item.h" |
29 #include "content/public/common/page_state.h" | 29 #include "content/public/common/page_state.h" |
30 #include "content/public/common/page_zoom.h" | 30 #include "content/public/common/page_zoom.h" |
31 #include "content/public/common/referrer.h" | 31 #include "content/public/common/referrer.h" |
32 #include "content/public/common/renderer_preferences.h" | 32 #include "content/public/common/renderer_preferences.h" |
33 #include "content/public/common/stop_find_action.h" | 33 #include "content/public/common/stop_find_action.h" |
34 #include "content/public/common/three_d_api_types.h" | 34 #include "content/public/common/three_d_api_types.h" |
35 #include "content/public/common/window_container_type.h" | 35 #include "content/public/common/window_container_type.h" |
36 #include "content/common/date_time_suggestion.h" | 36 #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) | 177 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams) |
178 IPC_STRUCT_TRAITS_MEMBER(mode) | 178 IPC_STRUCT_TRAITS_MEMBER(mode) |
179 IPC_STRUCT_TRAITS_MEMBER(title) | 179 IPC_STRUCT_TRAITS_MEMBER(title) |
180 IPC_STRUCT_TRAITS_MEMBER(default_file_name) | 180 IPC_STRUCT_TRAITS_MEMBER(default_file_name) |
181 IPC_STRUCT_TRAITS_MEMBER(accept_types) | 181 IPC_STRUCT_TRAITS_MEMBER(accept_types) |
182 #if defined(OS_ANDROID) | 182 #if defined(OS_ANDROID) |
183 IPC_STRUCT_TRAITS_MEMBER(capture) | 183 IPC_STRUCT_TRAITS_MEMBER(capture) |
184 #endif | 184 #endif |
185 IPC_STRUCT_TRAITS_END() | 185 IPC_STRUCT_TRAITS_END() |
186 | 186 |
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) | 187 IPC_STRUCT_TRAITS_BEGIN(content::PepperRendererInstanceData) |
202 IPC_STRUCT_TRAITS_MEMBER(render_process_id) | 188 IPC_STRUCT_TRAITS_MEMBER(render_process_id) |
203 IPC_STRUCT_TRAITS_MEMBER(render_frame_id) | 189 IPC_STRUCT_TRAITS_MEMBER(render_frame_id) |
204 IPC_STRUCT_TRAITS_MEMBER(document_url) | 190 IPC_STRUCT_TRAITS_MEMBER(document_url) |
205 IPC_STRUCT_TRAITS_MEMBER(plugin_url) | 191 IPC_STRUCT_TRAITS_MEMBER(plugin_url) |
206 IPC_STRUCT_TRAITS_END() | 192 IPC_STRUCT_TRAITS_END() |
207 | 193 |
208 IPC_STRUCT_TRAITS_BEGIN(content::RendererPreferences) | 194 IPC_STRUCT_TRAITS_BEGIN(content::RendererPreferences) |
209 IPC_STRUCT_TRAITS_MEMBER(can_accept_load_drops) | 195 IPC_STRUCT_TRAITS_MEMBER(can_accept_load_drops) |
210 IPC_STRUCT_TRAITS_MEMBER(should_antialias_text) | 196 IPC_STRUCT_TRAITS_MEMBER(should_antialias_text) |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
354 | 340 |
355 IPC_STRUCT_BEGIN(ViewHostMsg_DateTimeDialogValue_Params) | 341 IPC_STRUCT_BEGIN(ViewHostMsg_DateTimeDialogValue_Params) |
356 IPC_STRUCT_MEMBER(ui::TextInputType, dialog_type) | 342 IPC_STRUCT_MEMBER(ui::TextInputType, dialog_type) |
357 IPC_STRUCT_MEMBER(double, dialog_value) | 343 IPC_STRUCT_MEMBER(double, dialog_value) |
358 IPC_STRUCT_MEMBER(double, minimum) | 344 IPC_STRUCT_MEMBER(double, minimum) |
359 IPC_STRUCT_MEMBER(double, maximum) | 345 IPC_STRUCT_MEMBER(double, maximum) |
360 IPC_STRUCT_MEMBER(double, step) | 346 IPC_STRUCT_MEMBER(double, step) |
361 IPC_STRUCT_MEMBER(std::vector<content::DateTimeSuggestion>, suggestions) | 347 IPC_STRUCT_MEMBER(std::vector<content::DateTimeSuggestion>, suggestions) |
362 IPC_STRUCT_END() | 348 IPC_STRUCT_END() |
363 | 349 |
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) | 350 IPC_STRUCT_BEGIN(ViewHostMsg_OpenURL_Params) |
416 IPC_STRUCT_MEMBER(GURL, url) | 351 IPC_STRUCT_MEMBER(GURL, url) |
417 IPC_STRUCT_MEMBER(content::Referrer, referrer) | 352 IPC_STRUCT_MEMBER(content::Referrer, referrer) |
418 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) | 353 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) |
419 IPC_STRUCT_MEMBER(int64, frame_id) | 354 IPC_STRUCT_MEMBER(int64, frame_id) |
420 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) | 355 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) |
421 IPC_STRUCT_MEMBER(bool, user_gesture) | 356 IPC_STRUCT_MEMBER(bool, user_gesture) |
422 IPC_STRUCT_END() | 357 IPC_STRUCT_END() |
423 | 358 |
424 IPC_STRUCT_BEGIN(ViewHostMsg_SelectionBounds_Params) | 359 IPC_STRUCT_BEGIN(ViewHostMsg_SelectionBounds_Params) |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
549 | 484 |
550 // The latency information for the frame. Only valid when accelerated | 485 // The latency information for the frame. Only valid when accelerated |
551 // compositing is disabled. | 486 // compositing is disabled. |
552 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) | 487 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) |
553 IPC_STRUCT_END() | 488 IPC_STRUCT_END() |
554 | 489 |
555 IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params) | 490 IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params) |
556 // The page_id for this navigation, or -1 if it is a new navigation. Back, | 491 // 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 | 492 // 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 | 493 // succeeds, then this page_id will be reflected in the resultant |
559 // ViewHostMsg_FrameNavigate message. | 494 // FrameHostMsg_DidCommitProvisionalLoad message. |
560 IPC_STRUCT_MEMBER(int32, page_id) | 495 IPC_STRUCT_MEMBER(int32, page_id) |
561 | 496 |
562 // If page_id is -1, then pending_history_list_offset will also be -1. | 497 // 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 | 498 // Otherwise, it contains the offset into the history list corresponding to |
564 // the current navigation. | 499 // the current navigation. |
565 IPC_STRUCT_MEMBER(int, pending_history_list_offset) | 500 IPC_STRUCT_MEMBER(int, pending_history_list_offset) |
566 | 501 |
567 // Informs the RenderView of where its current page contents reside in | 502 // Informs the RenderView of where its current page contents reside in |
568 // session history and the total size of the session history list. | 503 // session history and the total size of the session history list. |
569 IPC_STRUCT_MEMBER(int, current_history_list_offset) | 504 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 | 1339 // Send in response to a ViewMsg_UpdateScreenRects so that the renderer can |
1405 // throttle these messages. | 1340 // throttle these messages. |
1406 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateScreenRects_ACK) | 1341 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateScreenRects_ACK) |
1407 | 1342 |
1408 // Sent by the renderer process to request that the browser move the view. | 1343 // 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 | 1344 // This corresponds to the window.resizeTo() and window.moveTo() APIs, and |
1410 // the browser may ignore this message. | 1345 // the browser may ignore this message. |
1411 IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestMove, | 1346 IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestMove, |
1412 gfx::Rect /* position */) | 1347 gfx::Rect /* position */) |
1413 | 1348 |
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). | 1349 // Message to show a popup menu using native cocoa controls (Mac only). |
1421 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowPopup, | 1350 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowPopup, |
1422 ViewHostMsg_ShowPopup_Params) | 1351 ViewHostMsg_ShowPopup_Params) |
1423 | 1352 |
1424 // Response from ViewMsg_ScriptEvalRequest. The ID is the parameter supplied | 1353 // Response from ViewMsg_ScriptEvalRequest. The ID is the parameter supplied |
1425 // to ViewMsg_ScriptEvalRequest. The result has the value returned by the | 1354 // 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 | 1355 // script as its only element, one of Null, Boolean, Integer, Real, Date, or |
1427 // String. | 1356 // String. |
1428 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse, | 1357 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse, |
1429 int /* id */, | 1358 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 | 2184 // synchronously (see crbug.com/120597). This IPC message sends the character |
2256 // bounds after every composition change to always have correct bound info. | 2185 // bounds after every composition change to always have correct bound info. |
2257 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2186 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2258 gfx::Range /* composition range */, | 2187 gfx::Range /* composition range */, |
2259 std::vector<gfx::Rect> /* character bounds */) | 2188 std::vector<gfx::Rect> /* character bounds */) |
2260 #endif | 2189 #endif |
2261 | 2190 |
2262 // Adding a new message? Stick to the sort order above: first platform | 2191 // Adding a new message? Stick to the sort order above: first platform |
2263 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2192 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2264 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2193 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |