OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/process.h" | 8 #include "base/process.h" |
9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 IPC_STRUCT_MEMBER(int, closing_route_id) | 543 IPC_STRUCT_MEMBER(int, closing_route_id) |
544 | 544 |
545 // The identifier of the RenderProcessHost for the new view attempting to | 545 // The identifier of the RenderProcessHost for the new view attempting to |
546 // replace the closing one above. | 546 // replace the closing one above. |
547 IPC_STRUCT_MEMBER(int, new_render_process_host_id) | 547 IPC_STRUCT_MEMBER(int, new_render_process_host_id) |
548 | 548 |
549 // The identifier of the *request* the new view made that is causing the | 549 // The identifier of the *request* the new view made that is causing the |
550 // cross-site transition. This is *not* a route_id, but the request that we | 550 // cross-site transition. This is *not* a route_id, but the request that we |
551 // will resume once the ACK from the closing view has been received. | 551 // will resume once the ACK from the closing view has been received. |
552 IPC_STRUCT_MEMBER(int, new_request_id) | 552 IPC_STRUCT_MEMBER(int, new_request_id) |
| 553 |
| 554 // The identifier of the browsing instance frame we need to install a DOM |
| 555 // proxy for. |
| 556 IPC_STRUCT_MEMBER(int64, browsing_instance_frame_id) |
553 IPC_STRUCT_END() | 557 IPC_STRUCT_END() |
554 | 558 |
555 IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params) | 559 IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params) |
556 // The page_id for this navigation, or -1 if it is a new navigation. Back, | 560 // 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 | 561 // 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 | 562 // succeeds, then this page_id will be reflected in the resultant |
559 // ViewHostMsg_FrameNavigate message. | 563 // ViewHostMsg_FrameNavigate message. |
560 IPC_STRUCT_MEMBER(int32, page_id) | 564 IPC_STRUCT_MEMBER(int32, page_id) |
561 | 565 |
562 // If page_id is -1, then pending_history_list_offset will also be -1. | 566 // If page_id is -1, then pending_history_list_offset will also be -1. |
(...skipping 21 matching lines...) Expand all Loading... |
584 IPC_STRUCT_MEMBER(std::string, state) | 588 IPC_STRUCT_MEMBER(std::string, state) |
585 | 589 |
586 // Type of navigation. | 590 // Type of navigation. |
587 IPC_STRUCT_MEMBER(ViewMsg_Navigate_Type::Value, navigation_type) | 591 IPC_STRUCT_MEMBER(ViewMsg_Navigate_Type::Value, navigation_type) |
588 | 592 |
589 // The time the request was created | 593 // The time the request was created |
590 IPC_STRUCT_MEMBER(base::Time, request_time) | 594 IPC_STRUCT_MEMBER(base::Time, request_time) |
591 | 595 |
592 // Extra headers (separated by \n) to send during the request. | 596 // Extra headers (separated by \n) to send during the request. |
593 IPC_STRUCT_MEMBER(std::string, extra_headers) | 597 IPC_STRUCT_MEMBER(std::string, extra_headers) |
| 598 |
| 599 // The browsing instance frame id of the opener, or -1 if none |
| 600 IPC_STRUCT_MEMBER(int64, opener_browsing_instance_frame_id) |
594 IPC_STRUCT_END() | 601 IPC_STRUCT_END() |
595 | 602 |
596 IPC_STRUCT_BEGIN(ViewMsg_New_Params) | 603 IPC_STRUCT_BEGIN(ViewMsg_New_Params) |
597 // The parent window's id. | 604 // The parent window's id. |
598 IPC_STRUCT_MEMBER(gfx::NativeViewId, parent_window) | 605 IPC_STRUCT_MEMBER(gfx::NativeViewId, parent_window) |
599 | 606 |
600 // Renderer-wide preferences. | 607 // Renderer-wide preferences. |
601 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) | 608 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) |
602 | 609 |
603 // Preferences for this view. | 610 // Preferences for this view. |
604 IPC_STRUCT_MEMBER(WebPreferences, web_preferences) | 611 IPC_STRUCT_MEMBER(WebPreferences, web_preferences) |
605 | 612 |
606 // The ID of the view to be created. | 613 // The ID of the view to be created. |
607 IPC_STRUCT_MEMBER(int32, view_id) | 614 IPC_STRUCT_MEMBER(int32, view_id) |
608 | 615 |
609 // The session storage namespace ID this view should use. | 616 // The session storage namespace ID this view should use. |
610 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id) | 617 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id) |
611 | 618 |
612 // The name of the frame associated with this view (or empty if none). | 619 // The name of the frame associated with this view (or empty if none). |
613 IPC_STRUCT_MEMBER(string16, frame_name) | 620 IPC_STRUCT_MEMBER(string16, frame_name) |
614 IPC_STRUCT_END() | 621 IPC_STRUCT_END() |
615 | 622 |
| 623 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) |
| 624 // The serialized script value |
| 625 IPC_STRUCT_MEMBER(string16, data) |
| 626 |
| 627 // The target origin |
| 628 IPC_STRUCT_MEMBER(string16, origin) |
| 629 |
| 630 // The last event id |
| 631 IPC_STRUCT_MEMBER(string16, lastEventId) |
| 632 IPC_STRUCT_END() |
| 633 |
| 634 IPC_STRUCT_BEGIN(ViewMsg_SetOpenerProxy_Params) |
| 635 IPC_STRUCT_MEMBER(int, render_process_host_id) |
| 636 IPC_STRUCT_MEMBER(int, render_route_id) |
| 637 // TODO(supersat): Frame identifier? |
| 638 IPC_STRUCT_END() |
| 639 |
| 640 IPC_STRUCT_BEGIN(ViewHostMsg_OpenURL_Params) |
| 641 IPC_STRUCT_MEMBER(GURL, url) |
| 642 IPC_STRUCT_MEMBER(GURL, referrer) |
| 643 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) |
| 644 IPC_STRUCT_MEMBER(int64, source_frame_id) |
| 645 IPC_STRUCT_MEMBER(int64, opener_frame_id) |
| 646 IPC_STRUCT_END() |
| 647 |
616 // Messages sent from the browser to the renderer. | 648 // Messages sent from the browser to the renderer. |
617 | 649 |
618 // Used typically when recovering from a crash. The new rendering process | 650 // Used typically when recovering from a crash. The new rendering process |
619 // sets its global "next page id" counter to the given value. | 651 // sets its global "next page id" counter to the given value. |
620 IPC_MESSAGE_CONTROL1(ViewMsg_SetNextPageID, | 652 IPC_MESSAGE_CONTROL1(ViewMsg_SetNextPageID, |
621 int32 /* next_page_id */) | 653 int32 /* next_page_id */) |
622 | 654 |
623 // Sent to the RenderView when a new tab is swapped into an existing | 655 // Sent to the RenderView when a new tab is swapped into an existing |
624 // tab and the histories need to be merged. The existing tab has a history of | 656 // tab and the histories need to be merged. The existing tab has a history of |
625 // |merged_history_length| which precedes the history of the new tab. All | 657 // |merged_history_length| which precedes the history of the new tab. All |
(...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1542 | 1574 |
1543 IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_RunJavaScriptMessage, | 1575 IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_RunJavaScriptMessage, |
1544 string16 /* in - alert message */, | 1576 string16 /* in - alert message */, |
1545 string16 /* in - default prompt */, | 1577 string16 /* in - default prompt */, |
1546 GURL /* in - originating page URL */, | 1578 GURL /* in - originating page URL */, |
1547 int /* in - dialog flags */, | 1579 int /* in - dialog flags */, |
1548 bool /* out - success */, | 1580 bool /* out - success */, |
1549 string16 /* out - user_input field */) | 1581 string16 /* out - user_input field */) |
1550 | 1582 |
1551 // Requests that the given URL be opened in the specified manner. | 1583 // Requests that the given URL be opened in the specified manner. |
1552 IPC_MESSAGE_ROUTED4(ViewHostMsg_OpenURL, | 1584 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenURL, |
1553 GURL /* url */, | 1585 ViewHostMsg_OpenURL_Params) |
1554 GURL /* referrer */, | |
1555 WindowOpenDisposition /* disposition */, | |
1556 int64 /* frame id */) | |
1557 | 1586 |
1558 // Notifies that the preferred size of the content changed. | 1587 // Notifies that the preferred size of the content changed. |
1559 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, | 1588 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, |
1560 gfx::Size /* pref_size */) | 1589 gfx::Size /* pref_size */) |
1561 | 1590 |
1562 // Notifies that the scrollbars-visible state of the content changed. | 1591 // Notifies that the scrollbars-visible state of the content changed. |
1563 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidChangeScrollOffsetPinningForMainFrame, | 1592 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidChangeScrollOffsetPinningForMainFrame, |
1564 bool /* has_horizontal_scrollbar */, | 1593 bool /* has_horizontal_scrollbar */, |
1565 bool /* has_vertical_scrollbar */) | 1594 bool /* has_vertical_scrollbar */) |
1566 | 1595 |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1912 media::MediaLogEvent /* event */) | 1941 media::MediaLogEvent /* event */) |
1913 | 1942 |
1914 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1943 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
1915 // being sent back. | 1944 // being sent back. |
1916 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) | 1945 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
1917 | 1946 |
1918 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 1947 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent |
1919 // whenever the mouse is unlocked (which may or may not be caused by | 1948 // whenever the mouse is unlocked (which may or may not be caused by |
1920 // ViewHostMsg_UnlockMouse). | 1949 // ViewHostMsg_UnlockMouse). |
1921 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 1950 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
| 1951 |
| 1952 IPC_MESSAGE_CONTROL2(ViewHostMsg_SendPostMessage, |
| 1953 int64 /* browsing_process_frame_id */, |
| 1954 ViewMsg_PostMessage_Params) |
| 1955 |
| 1956 IPC_MESSAGE_ROUTED2(ViewMsg_PostMessage, |
| 1957 int64 /* frame_id */, |
| 1958 ViewMsg_PostMessage_Params) |
| 1959 |
| 1960 IPC_MESSAGE_ROUTED1(ViewMsg_SetOpenerProxy, |
| 1961 ViewMsg_SetOpenerProxy_Params) |
OLD | NEW |