OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1039 IPC_MESSAGE_CONTROL1(ViewMsg_FileSystem_DidSucceed, | 1039 IPC_MESSAGE_CONTROL1(ViewMsg_FileSystem_DidSucceed, |
1040 int /* request_id */) | 1040 int /* request_id */) |
1041 IPC_MESSAGE_CONTROL2(ViewMsg_FileSystem_DidReadMetadata, | 1041 IPC_MESSAGE_CONTROL2(ViewMsg_FileSystem_DidReadMetadata, |
1042 int /* request_id */, | 1042 int /* request_id */, |
1043 base::PlatformFileInfo) | 1043 base::PlatformFileInfo) |
1044 IPC_MESSAGE_CONTROL3(ViewMsg_FileSystem_DidReadDirectory, | 1044 IPC_MESSAGE_CONTROL3(ViewMsg_FileSystem_DidReadDirectory, |
1045 int /* request_id */, | 1045 int /* request_id */, |
1046 std::vector<base::file_util_proxy::Entry> /* entries */, | 1046 std::vector<base::file_util_proxy::Entry> /* entries */, |
1047 bool /* has_more */) | 1047 bool /* has_more */) |
1048 | 1048 |
| 1049 IPC_MESSAGE_CONTROL3(ViewMsg_FileSystem_DidWrite, |
| 1050 int /* request_id */, |
| 1051 int64 /* byte count */, |
| 1052 bool /* complete */) |
1049 IPC_MESSAGE_CONTROL2(ViewMsg_FileSystem_DidFail, | 1053 IPC_MESSAGE_CONTROL2(ViewMsg_FileSystem_DidFail, |
1050 int /* request_id */, | 1054 int /* request_id */, |
1051 base::PlatformFileError /* error_code */) | 1055 base::PlatformFileError /* error_code */) |
1052 | 1056 |
1053 // The response to ViewHostMsg_AsyncOpenFile. | 1057 // The response to ViewHostMsg_AsyncOpenFile. |
1054 IPC_MESSAGE_ROUTED3(ViewMsg_AsyncOpenFile_ACK, | 1058 IPC_MESSAGE_ROUTED3(ViewMsg_AsyncOpenFile_ACK, |
1055 base::PlatformFileError /* error_code */, | 1059 base::PlatformFileError /* error_code */, |
1056 IPC::PlatformFileForTransit /* file descriptor */, | 1060 IPC::PlatformFileForTransit /* file descriptor */, |
1057 int /* message_id */) | 1061 int /* message_id */) |
1058 | 1062 |
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2177 ViewHostMsg_CreateWorker_Params, | 2181 ViewHostMsg_CreateWorker_Params, |
2178 bool /* exists */, | 2182 bool /* exists */, |
2179 int /* route_id */, | 2183 int /* route_id */, |
2180 bool /* url_mismatch */) | 2184 bool /* url_mismatch */) |
2181 | 2185 |
2182 // A renderer sends this to the browser process when a document has been | 2186 // A renderer sends this to the browser process when a document has been |
2183 // detached. The browser will use this to constrain the lifecycle of worker | 2187 // detached. The browser will use this to constrain the lifecycle of worker |
2184 // processes (SharedWorkers are shut down when their last associated document | 2188 // processes (SharedWorkers are shut down when their last associated document |
2185 // is detached). | 2189 // is detached). |
2186 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached, | 2190 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached, |
2187 unsigned long long /* document_id */) | 2191 uint64 /* document_id */) |
2188 | 2192 |
2189 // A message sent to the browser on behalf of a renderer which wants to show | 2193 // A message sent to the browser on behalf of a renderer which wants to show |
2190 // a desktop notification. | 2194 // a desktop notification. |
2191 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowDesktopNotification, | 2195 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowDesktopNotification, |
2192 ViewHostMsg_ShowNotification_Params) | 2196 ViewHostMsg_ShowNotification_Params) |
2193 IPC_MESSAGE_ROUTED1(ViewHostMsg_CancelDesktopNotification, | 2197 IPC_MESSAGE_ROUTED1(ViewHostMsg_CancelDesktopNotification, |
2194 int /* notification_id */ ) | 2198 int /* notification_id */ ) |
2195 IPC_MESSAGE_ROUTED2(ViewHostMsg_RequestNotificationPermission, | 2199 IPC_MESSAGE_ROUTED2(ViewHostMsg_RequestNotificationPermission, |
2196 GURL /* origin */, | 2200 GURL /* origin */, |
2197 int /* callback_context */) | 2201 int /* callback_context */) |
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2849 IPC_MESSAGE_CONTROL3(ViewHostMsg_FileSystem_Exists, | 2853 IPC_MESSAGE_CONTROL3(ViewHostMsg_FileSystem_Exists, |
2850 int /* request_id */, | 2854 int /* request_id */, |
2851 FilePath /* path */, | 2855 FilePath /* path */, |
2852 bool /* is_directory */) | 2856 bool /* is_directory */) |
2853 | 2857 |
2854 // WebFileSystem::readDirectory() message. | 2858 // WebFileSystem::readDirectory() message. |
2855 IPC_MESSAGE_CONTROL2(ViewHostMsg_FileSystem_ReadDirectory, | 2859 IPC_MESSAGE_CONTROL2(ViewHostMsg_FileSystem_ReadDirectory, |
2856 int /* request_id */, | 2860 int /* request_id */, |
2857 FilePath /* path */) | 2861 FilePath /* path */) |
2858 | 2862 |
| 2863 // WebFileWriter::write() message. |
| 2864 IPC_MESSAGE_CONTROL4(ViewHostMsg_FileSystem_Write, |
| 2865 int /* request id */, |
| 2866 FilePath /* file path */, |
| 2867 GURL /* blob URL */, |
| 2868 int64 /* position */) |
| 2869 |
| 2870 // WebFileWriter::truncate() message. |
| 2871 IPC_MESSAGE_CONTROL3(ViewHostMsg_FileSystem_Truncate, |
| 2872 int /* request id */, |
| 2873 FilePath /* file path */, |
| 2874 int64 /* length */) |
| 2875 |
| 2876 // WebFileWriter::cancel() message. |
| 2877 IPC_MESSAGE_CONTROL2(ViewHostMsg_FileSystem_CancelWrite, |
| 2878 int /* request id */, |
| 2879 int /* id of request to cancel */) |
| 2880 |
2859 //--------------------------------------------------------------------------- | 2881 //--------------------------------------------------------------------------- |
2860 // Blob messages: | 2882 // Blob messages: |
2861 | 2883 |
2862 // Registers a blob URL referring to the specified blob data. | 2884 // Registers a blob URL referring to the specified blob data. |
2863 IPC_MESSAGE_CONTROL2(ViewHostMsg_RegisterBlobUrl, | 2885 IPC_MESSAGE_CONTROL2(ViewHostMsg_RegisterBlobUrl, |
2864 GURL /* url */, | 2886 GURL /* url */, |
2865 scoped_refptr<webkit_blob::BlobData> /* blob_data */) | 2887 scoped_refptr<webkit_blob::BlobData> /* blob_data */) |
2866 | 2888 |
2867 // Registers a blob URL referring to the blob data identified by the specified | 2889 // Registers a blob URL referring to the blob data identified by the specified |
2868 // source URL. | 2890 // source URL. |
2869 IPC_MESSAGE_CONTROL2(ViewHostMsg_RegisterBlobUrlFrom, | 2891 IPC_MESSAGE_CONTROL2(ViewHostMsg_RegisterBlobUrlFrom, |
2870 GURL /* url */, | 2892 GURL /* url */, |
2871 GURL /* src_url */) | 2893 GURL /* src_url */) |
2872 | 2894 |
2873 // Unregister a blob URL. | 2895 // Unregister a blob URL. |
2874 IPC_MESSAGE_CONTROL1(ViewHostMsg_UnregisterBlobUrl, GURL /* url */) | 2896 IPC_MESSAGE_CONTROL1(ViewHostMsg_UnregisterBlobUrl, GURL /* url */) |
2875 | 2897 |
2876 // Suggest results ----------------------------------------------------------- | 2898 // Suggest results ----------------------------------------------------------- |
2877 | 2899 |
2878 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetSuggestResult, | 2900 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetSuggestResult, |
2879 int32 /* page_id */, | 2901 int32 /* page_id */, |
2880 std::string /* suggest */) | 2902 std::string /* suggest */) |
2881 | 2903 |
2882 IPC_END_MESSAGES(ViewHost) | 2904 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |