| 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 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 int /* id of browser window */) | 814 int /* id of browser window */) |
| 815 | 815 |
| 816 // Tell the renderer which type this view is. | 816 // Tell the renderer which type this view is. |
| 817 IPC_MESSAGE_ROUTED1(ViewMsg_NotifyRenderViewType, | 817 IPC_MESSAGE_ROUTED1(ViewMsg_NotifyRenderViewType, |
| 818 ViewType::Type /* view_type */) | 818 ViewType::Type /* view_type */) |
| 819 | 819 |
| 820 // Notification that renderer should run some JavaScript code. | 820 // Notification that renderer should run some JavaScript code. |
| 821 IPC_MESSAGE_ROUTED1(ViewMsg_ExecuteCode, | 821 IPC_MESSAGE_ROUTED1(ViewMsg_ExecuteCode, |
| 822 ViewMsg_ExecuteCode_Params) | 822 ViewMsg_ExecuteCode_Params) |
| 823 | 823 |
| 824 // Returns a file handle | |
| 825 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseOpenFileResponse, | |
| 826 int32 /* the ID of the message we're replying to */, | |
| 827 ViewMsg_DatabaseOpenFileResponse_Params) | |
| 828 | |
| 829 // Returns a SQLite error code | |
| 830 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseDeleteFileResponse, | |
| 831 int32 /* the ID of the message we're replying to */, | |
| 832 int /* SQLite error code */) | |
| 833 | |
| 834 // Returns the attributes of a file | |
| 835 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseGetFileAttributesResponse, | |
| 836 int32 /* the ID of the message we're replying to */, | |
| 837 int32 /* the attributes for the given DB file */) | |
| 838 | |
| 839 // Returns the size of a file | |
| 840 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseGetFileSizeResponse, | |
| 841 int32 /* the ID of the message we're replying to */, | |
| 842 int64 /* the size of the given DB file */) | |
| 843 | |
| 844 // Notifies the child process of the new database size | 824 // Notifies the child process of the new database size |
| 845 IPC_MESSAGE_CONTROL4(ViewMsg_DatabaseUpdateSize, | 825 IPC_MESSAGE_CONTROL4(ViewMsg_DatabaseUpdateSize, |
| 846 string16 /* the origin */, | 826 string16 /* the origin */, |
| 847 string16 /* the database name */, | 827 string16 /* the database name */, |
| 848 int64 /* the new database size */, | 828 int64 /* the new database size */, |
| 849 int64 /* space available to origin */) | 829 int64 /* space available to origin */) |
| 850 | 830 |
| 851 // Asks the child process to close a database immediately | 831 // Asks the child process to close a database immediately |
| 852 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseCloseImmediately, | 832 IPC_MESSAGE_CONTROL2(ViewMsg_DatabaseCloseImmediately, |
| 853 string16 /* the origin */, | 833 string16 /* the origin */, |
| (...skipping 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2119 | 2099 |
| 2120 // Sent by the renderer process to check whether access to web databases is | 2100 // Sent by the renderer process to check whether access to web databases is |
| 2121 // granted by content settings. This may block and trigger a cookie prompt. | 2101 // granted by content settings. This may block and trigger a cookie prompt. |
| 2122 IPC_SYNC_MESSAGE_ROUTED4_1(ViewHostMsg_AllowDatabase, | 2102 IPC_SYNC_MESSAGE_ROUTED4_1(ViewHostMsg_AllowDatabase, |
| 2123 std::string /* origin_url */, | 2103 std::string /* origin_url */, |
| 2124 string16 /* database name */, | 2104 string16 /* database name */, |
| 2125 string16 /* database display name */, | 2105 string16 /* database display name */, |
| 2126 unsigned long /* estimated size */, | 2106 unsigned long /* estimated size */, |
| 2127 bool /* result */) | 2107 bool /* result */) |
| 2128 | 2108 |
| 2129 // Asks the browser process to open a DB file with the given name | 2109 // Asks the browser process to open a DB file with the given name. |
| 2130 IPC_MESSAGE_CONTROL3(ViewHostMsg_DatabaseOpenFile, | 2110 #if defined (OS_WIN) |
| 2111 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DatabaseOpenFile, |
| 2112 string16 /* vfs file name */, |
| 2113 int /* desired flags */, |
| 2114 IPC::PlatformFileForTransit /* file_handle */) |
| 2115 #elif defined(OS_POSIX) |
| 2116 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_DatabaseOpenFile, |
| 2131 string16 /* vfs file name */, | 2117 string16 /* vfs file name */, |
| 2132 int /* desired flags */, | 2118 int /* desired flags */, |
| 2133 int32 /* a unique message ID */) | 2119 IPC::PlatformFileForTransit /* file_handle */, |
| 2120 base::FileDescriptor /* dir_handle */) |
| 2121 #endif |
| 2134 | 2122 |
| 2135 // Asks the browser process to delete a DB file | 2123 // Asks the browser process to delete a DB file |
| 2136 IPC_MESSAGE_CONTROL3(ViewHostMsg_DatabaseDeleteFile, | 2124 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_DatabaseDeleteFile, |
| 2137 string16 /* vfs file name */, | 2125 string16 /* vfs file name */, |
| 2138 bool /* whether or not to sync the directory */, | 2126 bool /* whether or not to sync the directory */, |
| 2139 int32 /* a unique message ID */) | 2127 int /* SQLite error code */) |
| 2140 | 2128 |
| 2141 // Asks the browser process to return the attributes of a DB file | 2129 // Asks the browser process to return the attributes of a DB file |
| 2142 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, | 2130 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DatabaseGetFileAttributes, |
| 2143 string16 /* vfs file name */, | 2131 string16 /* vfs file name */, |
| 2144 int32 /* a unique message ID */) | 2132 int32 /* the attributes for the given DB file */) |
| 2145 | 2133 |
| 2146 // Asks the browser process to return the size of a DB file | 2134 // Asks the browser process to return the size of a DB file |
| 2147 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, | 2135 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_DatabaseGetFileSize, |
| 2148 string16 /* vfs file name */, | 2136 string16 /* vfs file name */, |
| 2149 int32 /* a unique message ID */) | 2137 int64 /* the size of the given DB file */) |
| 2150 | 2138 |
| 2151 // Notifies the browser process that a new database has been opened | 2139 // Notifies the browser process that a new database has been opened |
| 2152 IPC_MESSAGE_CONTROL4(ViewHostMsg_DatabaseOpened, | 2140 IPC_MESSAGE_CONTROL4(ViewHostMsg_DatabaseOpened, |
| 2153 string16 /* origin identifier */, | 2141 string16 /* origin identifier */, |
| 2154 string16 /* database name */, | 2142 string16 /* database name */, |
| 2155 string16 /* database description */, | 2143 string16 /* database description */, |
| 2156 int64 /* estimated size */) | 2144 int64 /* estimated size */) |
| 2157 | 2145 |
| 2158 // Notifies the browser process that a database might have been modified | 2146 // Notifies the browser process that a database might have been modified |
| 2159 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseModified, | 2147 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseModified, |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2300 int /* render_view_id */, | 2288 int /* render_view_id */, |
| 2301 int /* bridge_id */) | 2289 int /* bridge_id */) |
| 2302 | 2290 |
| 2303 // The |render_view_id| and |bridge_id| requests Geolocation service to | 2291 // The |render_view_id| and |bridge_id| requests Geolocation service to |
| 2304 // resume. | 2292 // resume. |
| 2305 IPC_MESSAGE_CONTROL2(ViewHostMsg_Geolocation_Resume, | 2293 IPC_MESSAGE_CONTROL2(ViewHostMsg_Geolocation_Resume, |
| 2306 int /* render_view_id */, | 2294 int /* render_view_id */, |
| 2307 int /* bridge_id */) | 2295 int /* bridge_id */) |
| 2308 | 2296 |
| 2309 IPC_END_MESSAGES(ViewHost) | 2297 IPC_END_MESSAGES(ViewHost) |
| OLD | NEW |