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 1731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1742 // Since the browser keeps handles to the allocated transport DIBs, this | 1742 // Since the browser keeps handles to the allocated transport DIBs, this |
1743 // message is sent to tell the browser that it may release them when the | 1743 // message is sent to tell the browser that it may release them when the |
1744 // renderer is finished with them. | 1744 // renderer is finished with them. |
1745 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 1745 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
1746 TransportDIB::Id /* DIB id */) | 1746 TransportDIB::Id /* DIB id */) |
1747 #endif | 1747 #endif |
1748 | 1748 |
1749 // A renderer sends this to the browser process when it wants to create a | 1749 // A renderer sends this to the browser process when it wants to create a |
1750 // worker. The browser will create the worker process if necessary, and | 1750 // worker. The browser will create the worker process if necessary, and |
1751 // will return the route id on success. On error returns MSG_ROUTING_NONE. | 1751 // will return the route id on success. On error returns MSG_ROUTING_NONE. |
1752 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_CreateWorker, | 1752 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker, |
1753 GURL /* url */, | 1753 ViewHostMsg_CreateWorker_Params, |
1754 bool /* is_shared */, | |
1755 string16 /* name */, | |
1756 int /* render_view_route_id */, | |
1757 int /* route_id */) | 1754 int /* route_id */) |
1758 | 1755 |
1759 // This message is sent to the browser to see if an instance of this shared | 1756 // This message is sent to the browser to see if an instance of this shared |
1760 // worker already exists (returns route_id != MSG_ROUTING_NONE). This route | 1757 // worker already exists (returns route_id != MSG_ROUTING_NONE). This route |
1761 // id can be used to forward messages to the worker via ForwardToWorker. If a | 1758 // id can be used to forward messages to the worker via ForwardToWorker. If a |
1762 // non-empty name is passed, also validates that the url matches the url of | 1759 // non-empty name is passed, also validates that the url matches the url of |
1763 // the existing worker. If a matching worker is found, the passed-in | 1760 // the existing worker. If a matching worker is found, the passed-in |
1764 // document_id is associated with that worker, to ensure that the worker | 1761 // document_id is associated with that worker, to ensure that the worker |
1765 // stays alive until the document is detached. | 1762 // stays alive until the document is detached. |
1766 IPC_SYNC_MESSAGE_CONTROL3_2(ViewHostMsg_LookupSharedWorker, | 1763 IPC_SYNC_MESSAGE_CONTROL4_2(ViewHostMsg_LookupSharedWorker, |
1767 GURL /* url */, | 1764 GURL /* url */, |
1768 string16 /* name */, | 1765 string16 /* name */, |
1769 unsigned long long /* document_id */, | 1766 unsigned long long /* document_id */, |
| 1767 int /* render_view_route_id */, |
1770 int /* route_id */, | 1768 int /* route_id */, |
1771 bool /* url_mismatch */) | 1769 bool /* url_mismatch */) |
1772 | 1770 |
1773 // A renderer sends this to the browser process when a document has been | 1771 // A renderer sends this to the browser process when a document has been |
1774 // detached. The browser will use this to constrain the lifecycle of worker | 1772 // detached. The browser will use this to constrain the lifecycle of worker |
1775 // processes (SharedWorkers are shut down when their last associated document | 1773 // processes (SharedWorkers are shut down when their last associated document |
1776 // is detached). | 1774 // is detached). |
1777 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached, | 1775 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached, |
1778 unsigned long long /* document_id */) | 1776 unsigned long long /* document_id */) |
1779 | 1777 |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2013 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, | 2011 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, |
2014 string16 /* word */, | 2012 string16 /* word */, |
2015 std::vector<string16> /* suggestions */) | 2013 std::vector<string16> /* suggestions */) |
2016 | 2014 |
2017 // Request for text translation. | 2015 // Request for text translation. |
2018 // Used when translating a page from one language to another. | 2016 // Used when translating a page from one language to another. |
2019 IPC_MESSAGE_CONTROL1(ViewHostMsg_TranslateText, | 2017 IPC_MESSAGE_CONTROL1(ViewHostMsg_TranslateText, |
2020 ViewHostMsg_TranslateTextParam) | 2018 ViewHostMsg_TranslateTextParam) |
2021 | 2019 |
2022 IPC_END_MESSAGES(ViewHost) | 2020 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |