| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // This header is meant to be included in multiple passes, hence no traditional | 5 // This header is meant to be included in multiple passes, hence no traditional |
| 6 // header guard. | 6 // header guard. |
| 7 // See ipc_message_macros.h for explanation of the macros and passes. | 7 // See ipc_message_macros.h for explanation of the macros and passes. |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // before creating any new views. | 65 // before creating any new views. |
| 66 // The message can also be sent during a renderer's lifetime if system colors | 66 // The message can also be sent during a renderer's lifetime if system colors |
| 67 // are updated. | 67 // are updated. |
| 68 // TODO(jeremy): Possibly change IPC format once we have this all hooked up. | 68 // TODO(jeremy): Possibly change IPC format once we have this all hooked up. |
| 69 IPC_MESSAGE_ROUTED1(ViewMsg_SetCSSColors, | 69 IPC_MESSAGE_ROUTED1(ViewMsg_SetCSSColors, |
| 70 std::vector<CSSColors::CSSColorMapping>) | 70 std::vector<CSSColors::CSSColorMapping>) |
| 71 | 71 |
| 72 // Tells the renderer to create a new view. | 72 // Tells the renderer to create a new view. |
| 73 // This message is slightly different, the view it takes is the view to | 73 // This message is slightly different, the view it takes is the view to |
| 74 // create, the message itself is sent as a non-view control message. | 74 // create, the message itself is sent as a non-view control message. |
| 75 IPC_MESSAGE_CONTROL4(ViewMsg_New, | 75 IPC_MESSAGE_CONTROL1(ViewMsg_New, |
| 76 gfx::NativeViewId, /* parent window */ | 76 ViewMsg_New_Params) |
| 77 RendererPreferences, | |
| 78 WebPreferences, | |
| 79 int32 /* view id */) | |
| 80 | 77 |
| 81 // Tells the renderer to set its maximum cache size to the supplied value | 78 // Tells the renderer to set its maximum cache size to the supplied value |
| 82 IPC_MESSAGE_CONTROL3(ViewMsg_SetCacheCapacities, | 79 IPC_MESSAGE_CONTROL3(ViewMsg_SetCacheCapacities, |
| 83 size_t /* min_dead_capacity */, | 80 size_t /* min_dead_capacity */, |
| 84 size_t /* max_dead_capacity */, | 81 size_t /* max_dead_capacity */, |
| 85 size_t /* capacity */) | 82 size_t /* capacity */) |
| 86 | 83 |
| 87 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. | 84 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. |
| 88 // similar to the new command, but used when the renderer created a view | 85 // similar to the new command, but used when the renderer created a view |
| 89 // first, and we need to update it | 86 // first, and we need to update it |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 838 | 835 |
| 839 | 836 |
| 840 //----------------------------------------------------------------------------- | 837 //----------------------------------------------------------------------------- |
| 841 // TabContents messages | 838 // TabContents messages |
| 842 // These are messages sent from the renderer to the browser process. | 839 // These are messages sent from the renderer to the browser process. |
| 843 | 840 |
| 844 IPC_BEGIN_MESSAGES(ViewHost) | 841 IPC_BEGIN_MESSAGES(ViewHost) |
| 845 // Sent by the renderer when it is creating a new window. The browser creates | 842 // Sent by the renderer when it is creating a new window. The browser creates |
| 846 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is | 843 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is |
| 847 // MSG_ROUTING_NONE, the view couldn't be created. | 844 // MSG_ROUTING_NONE, the view couldn't be created. |
| 848 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateWindow, | 845 IPC_SYNC_MESSAGE_CONTROL3_2(ViewHostMsg_CreateWindow, |
| 849 int /* opener_id */, | 846 int /* opener_id */, |
| 850 bool /* user_gesture */, | 847 bool /* user_gesture */, |
| 851 int /* route_id */) | 848 int64 /* session_storage_namespace_id */, |
| 849 int /* route_id */, |
| 850 int64 /* cloned_session_storage_namespace_id */) |
| 852 | 851 |
| 853 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like | 852 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like |
| 854 // <select> dropdowns. This message is sent to the TabContents that | 853 // <select> dropdowns. This message is sent to the TabContents that |
| 855 // contains the widget being created. | 854 // contains the widget being created. |
| 856 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateWidget, | 855 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateWidget, |
| 857 int /* opener_id */, | 856 int /* opener_id */, |
| 858 bool /* focus on show */, | 857 bool /* focus on show */, |
| 859 int /* route_id */) | 858 int /* route_id */) |
| 860 | 859 |
| 861 // These two messages are sent to the parent RenderViewHost to display the | 860 // These two messages are sent to the parent RenderViewHost to display the |
| (...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1832 | 1831 |
| 1833 // Message sent from the renderer to the browser to request that the browser | 1832 // Message sent from the renderer to the browser to request that the browser |
| 1834 // close all sockets. Used for debugging/testing. | 1833 // close all sockets. Used for debugging/testing. |
| 1835 IPC_MESSAGE_CONTROL0(ViewHostMsg_CloseCurrentConnections) | 1834 IPC_MESSAGE_CONTROL0(ViewHostMsg_CloseCurrentConnections) |
| 1836 | 1835 |
| 1837 // Message sent from the renderer to the browser to request that the browser | 1836 // Message sent from the renderer to the browser to request that the browser |
| 1838 // close all idle sockets. Used for debugging/testing. | 1837 // close all idle sockets. Used for debugging/testing. |
| 1839 IPC_MESSAGE_CONTROL1(ViewHostMsg_SetCacheMode, | 1838 IPC_MESSAGE_CONTROL1(ViewHostMsg_SetCacheMode, |
| 1840 bool /* enabled */) | 1839 bool /* enabled */) |
| 1841 | 1840 |
| 1842 // There's one LocalStorage namespace per profile and one SessionStorage | |
| 1843 // namespace per tab. This will find or create the proper namespace. | |
| 1844 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DOMStorageNamespaceId, | |
| 1845 DOMStorageType /* storage_type */, | |
| 1846 int64 /* new_namespace_id */) | |
| 1847 | |
| 1848 // Used by SessionStorage to clone a namespace per the spec. | |
| 1849 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DOMStorageCloneNamespaceId, | |
| 1850 int64 /* namespace_id to clone */, | |
| 1851 int64 /* new_namespace_id */) | |
| 1852 | |
| 1853 // Get the storage area id for a particular origin within a namespace. | 1841 // Get the storage area id for a particular origin within a namespace. |
| 1854 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DOMStorageStorageAreaId, | 1842 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DOMStorageStorageAreaId, |
| 1855 int64 /* namespace_id */, | 1843 int64 /* namespace_id */, |
| 1856 string16 /* origin */, | 1844 string16 /* origin */, |
| 1857 int64 /* storage_area_id */) | 1845 int64 /* storage_area_id */) |
| 1858 | 1846 |
| 1859 // Get the length of a storage area. | 1847 // Get the length of a storage area. |
| 1860 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DOMStorageLength, | 1848 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DOMStorageLength, |
| 1861 int64 /* storage_area_id */, | 1849 int64 /* storage_area_id */, |
| 1862 unsigned /* length */) | 1850 unsigned /* length */) |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2001 string16 /* word */, | 1989 string16 /* word */, |
| 2002 int /* document tag */, | 1990 int /* document tag */, |
| 2003 bool /* correct */) | 1991 bool /* correct */) |
| 2004 | 1992 |
| 2005 IPC_SYNC_MESSAGE_CONTROL1_1( | 1993 IPC_SYNC_MESSAGE_CONTROL1_1( |
| 2006 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, | 1994 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, |
| 2007 string16 /* word */, | 1995 string16 /* word */, |
| 2008 std::vector<string16> /* suggestions */) | 1996 std::vector<string16> /* suggestions */) |
| 2009 | 1997 |
| 2010 IPC_END_MESSAGES(ViewHost) | 1998 IPC_END_MESSAGES(ViewHost) |
| OLD | NEW |