OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 // Initiate a download based on user actions like 'ALT+click'. | 748 // Initiate a download based on user actions like 'ALT+click'. |
749 IPC_MESSAGE_ROUTED2(ViewHostMsg_DownloadUrl, | 749 IPC_MESSAGE_ROUTED2(ViewHostMsg_DownloadUrl, |
750 GURL /* url */, | 750 GURL /* url */, |
751 GURL /* referrer */) | 751 GURL /* referrer */) |
752 | 752 |
753 // Used to go to the session history entry at the given offset (ie, -1 will | 753 // Used to go to the session history entry at the given offset (ie, -1 will |
754 // return the "back" item). | 754 // return the "back" item). |
755 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, | 755 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, |
756 int /* offset (from current) of history item to get */) | 756 int /* offset (from current) of history item to get */) |
757 | 757 |
758 IPC_SYNC_MESSAGE_ROUTED3_2(ViewHostMsg_RunJavaScriptMessage, | 758 IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_RunJavaScriptMessage, |
759 std::wstring /* in - alert message */, | 759 std::wstring /* in - alert message */, |
760 std::wstring /* in - default prompt */, | 760 std::wstring /* in - default prompt */, |
| 761 GURL /* in - originating page URL */, |
761 int /* in - dialog flags */, | 762 int /* in - dialog flags */, |
762 bool /* out - success */, | 763 bool /* out - success */, |
763 std::wstring /* out - prompt field */) | 764 std::wstring /* out - prompt field */) |
764 | 765 |
765 // Sets the contents for the given page (URL and page ID are the first two | 766 // Sets the contents for the given page (URL and page ID are the first two |
766 // arguments) given the contents that is the 3rd. | 767 // arguments) given the contents that is the 3rd. |
767 IPC_MESSAGE_CONTROL3(ViewHostMsg_PageContents, GURL, int32, std::wstring) | 768 IPC_MESSAGE_CONTROL3(ViewHostMsg_PageContents, GURL, int32, std::wstring) |
768 | 769 |
769 // Specifies the URL as the first parameter (a wstring) and thumbnail as | 770 // Specifies the URL as the first parameter (a wstring) and thumbnail as |
770 // binary data as the second parameter. | 771 // binary data as the second parameter. |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1025 // crashed. | 1026 // crashed. |
1026 IPC_MESSAGE_ROUTED1(ViewHostMsg_CrashedPlugin, | 1027 IPC_MESSAGE_ROUTED1(ViewHostMsg_CrashedPlugin, |
1027 FilePath /* plugin_path */) | 1028 FilePath /* plugin_path */) |
1028 | 1029 |
1029 // Dsiplays a JavaScript out-of-memory message in the infobar. | 1030 // Dsiplays a JavaScript out-of-memory message in the infobar. |
1030 IPC_MESSAGE_ROUTED0(ViewHostMsg_JSOutOfMemory) | 1031 IPC_MESSAGE_ROUTED0(ViewHostMsg_JSOutOfMemory) |
1031 | 1032 |
1032 // Displays a box to confirm that the user wants to navigate away from the | 1033 // Displays a box to confirm that the user wants to navigate away from the |
1033 // page. Replies true if yes, false otherwise, the reply string is ignored, | 1034 // page. Replies true if yes, false otherwise, the reply string is ignored, |
1034 // but is included so that we can use OnJavaScriptMessageBoxClosed. | 1035 // but is included so that we can use OnJavaScriptMessageBoxClosed. |
1035 IPC_SYNC_MESSAGE_ROUTED1_2(ViewHostMsg_RunBeforeUnloadConfirm, | 1036 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_RunBeforeUnloadConfirm, |
| 1037 GURL, /* in - originating frame URL */ |
1036 std::wstring /* in - alert message */, | 1038 std::wstring /* in - alert message */, |
1037 bool /* out - success */, | 1039 bool /* out - success */, |
1038 std::wstring /* out - This is ignored.*/) | 1040 std::wstring /* out - This is ignored.*/) |
1039 | 1041 |
1040 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendCurrentPageAllSavableResourceLinks, | 1042 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendCurrentPageAllSavableResourceLinks, |
1041 std::vector<GURL> /* all savable resource links */, | 1043 std::vector<GURL> /* all savable resource links */, |
1042 std::vector<GURL> /* all referrers of resource links */, | 1044 std::vector<GURL> /* all referrers of resource links */, |
1043 std::vector<GURL> /* all frame links */) | 1045 std::vector<GURL> /* all frame links */) |
1044 | 1046 |
1045 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendSerializedHtmlData, | 1047 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendSerializedHtmlData, |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1202 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateDedicatedWorker, | 1204 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateDedicatedWorker, |
1203 GURL /* url */, | 1205 GURL /* url */, |
1204 int /* route_id */) | 1206 int /* route_id */) |
1205 | 1207 |
1206 // Wraps an IPC message that's destined to the worker on the renderer->browser | 1208 // Wraps an IPC message that's destined to the worker on the renderer->browser |
1207 // hop. | 1209 // hop. |
1208 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, | 1210 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, |
1209 IPC::Message /* message */) | 1211 IPC::Message /* message */) |
1210 | 1212 |
1211 IPC_END_MESSAGES(ViewHost) | 1213 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |