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 1727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1738 // A renderer sends this to the browser process when it wants to create a | 1738 // A renderer sends this to the browser process when it wants to create a |
1739 // worker. The browser will create the worker process if necessary, and | 1739 // worker. The browser will create the worker process if necessary, and |
1740 // will return the route id on success. On error returns MSG_ROUTING_NONE. | 1740 // will return the route id on success. On error returns MSG_ROUTING_NONE. |
1741 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_CreateWorker, | 1741 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_CreateWorker, |
1742 GURL /* url */, | 1742 GURL /* url */, |
1743 bool /* is_shared */, | 1743 bool /* is_shared */, |
1744 string16 /* name */, | 1744 string16 /* name */, |
1745 int /* render_view_route_id */, | 1745 int /* render_view_route_id */, |
1746 int /* route_id */) | 1746 int /* route_id */) |
1747 | 1747 |
| 1748 // This message is sent to the browser to see if an instance of this shared |
| 1749 // worker already exists (returns route_id != MSG_ROUTING_NONE). This route |
| 1750 // id can be used to forward messages to the worker via ForwardToWorker. If a |
| 1751 // non-empty name is passed, also validates that the url matches the url of |
| 1752 // the existing worker. If a matching worker is found, the passed-in |
| 1753 // document_id is associated with that worker, to ensure that the worker |
| 1754 // stays alive until the document is detached. |
| 1755 IPC_SYNC_MESSAGE_CONTROL3_2(ViewHostMsg_LookupSharedWorker, |
| 1756 GURL /* url */, |
| 1757 string16 /* name */, |
| 1758 unsigned long long /* document_id */, |
| 1759 int /* route_id */, |
| 1760 bool /* url_mismatch */) |
| 1761 |
| 1762 // A renderer sends this to the browser process when a document has been |
| 1763 // detached. The browser will use this to constrain the lifecycle of worker |
| 1764 // processes (SharedWorkers are shut down when their last associated document |
| 1765 // is detached). |
| 1766 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached, |
| 1767 unsigned long long /* document_id */) |
| 1768 |
1748 // A message sent to the browser on behalf of a renderer which wants to show | 1769 // A message sent to the browser on behalf of a renderer which wants to show |
1749 // a desktop notification. | 1770 // a desktop notification. |
1750 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDesktopNotification, | 1771 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDesktopNotification, |
1751 GURL /* origin */, | 1772 GURL /* origin */, |
1752 GURL /* contents_url */, | 1773 GURL /* contents_url */, |
1753 int /* notification_id */) | 1774 int /* notification_id */) |
1754 IPC_MESSAGE_ROUTED5(ViewHostMsg_ShowDesktopNotificationText, | 1775 IPC_MESSAGE_ROUTED5(ViewHostMsg_ShowDesktopNotificationText, |
1755 GURL /* origin */, | 1776 GURL /* origin */, |
1756 GURL /* icon_url */, | 1777 GURL /* icon_url */, |
1757 string16 /* title */, | 1778 string16 /* title */, |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2012 std::string /* signed public key and challenge */) | 2033 std::string /* signed public key and challenge */) |
2013 | 2034 |
2014 #if defined(SPELLCHECKER_IN_RENDERER) | 2035 #if defined(SPELLCHECKER_IN_RENDERER) |
2015 // The renderer has tried to spell check a word, but couldn't because no | 2036 // The renderer has tried to spell check a word, but couldn't because no |
2016 // dictionary was available to load. Request that the browser find an | 2037 // dictionary was available to load. Request that the browser find an |
2017 // appropriate dictionary and return it. | 2038 // appropriate dictionary and return it. |
2018 IPC_MESSAGE_CONTROL0(ViewHostMsg_SpellChecker_RequestDictionary) | 2039 IPC_MESSAGE_CONTROL0(ViewHostMsg_SpellChecker_RequestDictionary) |
2019 #endif | 2040 #endif |
2020 | 2041 |
2021 IPC_END_MESSAGES(ViewHost) | 2042 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |