OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // IPC messages for extensions. | 5 // IPC messages for extensions. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
| 8 #include "base/shared_memory.h" |
8 #include "base/values.h" | 9 #include "base/values.h" |
9 #include "chrome/common/extensions/extension.h" | 10 #include "chrome/common/extensions/extension.h" |
10 #include "chrome/common/extensions/extension_extent.h" | 11 #include "chrome/common/extensions/extension_extent.h" |
11 #include "chrome/common/extensions/url_pattern.h" | 12 #include "chrome/common/extensions/url_pattern.h" |
12 #include "chrome/common/web_apps.h" | 13 #include "chrome/common/web_apps.h" |
13 #include "ipc/ipc_message_macros.h" | 14 #include "ipc/ipc_message_macros.h" |
14 | 15 |
15 #define IPC_MESSAGE_START ExtensionMsgStart | 16 #define IPC_MESSAGE_START ExtensionMsgStart |
16 | 17 |
17 // Parameters structure for ExtensionHostMsg_Request. | 18 // Parameters structure for ExtensionHostMsg_Request. |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 194 |
194 // Updates the scripting whitelist for extensions in the render process. This is | 195 // Updates the scripting whitelist for extensions in the render process. This is |
195 // only used for testing. | 196 // only used for testing. |
196 IPC_MESSAGE_CONTROL1(ExtensionMsg_SetScriptingWhitelist, | 197 IPC_MESSAGE_CONTROL1(ExtensionMsg_SetScriptingWhitelist, |
197 Extension::ScriptingWhitelist /* extenison ids */) | 198 Extension::ScriptingWhitelist /* extenison ids */) |
198 | 199 |
199 // Notification that renderer should run some JavaScript code. | 200 // Notification that renderer should run some JavaScript code. |
200 IPC_MESSAGE_ROUTED1(ExtensionMsg_ExecuteCode, | 201 IPC_MESSAGE_ROUTED1(ExtensionMsg_ExecuteCode, |
201 ExtensionMsg_ExecuteCode_Params) | 202 ExtensionMsg_ExecuteCode_Params) |
202 | 203 |
| 204 // Notification that the user scripts have been updated. It has one |
| 205 // SharedMemoryHandle argument consisting of the pickled script data. This |
| 206 // handle is valid in the context of the renderer. |
| 207 IPC_MESSAGE_CONTROL1(ExtensionMsg_UpdateUserScripts, |
| 208 base::SharedMemoryHandle) |
| 209 |
203 // Requests application info for the page. The renderer responds back with | 210 // Requests application info for the page. The renderer responds back with |
204 // ExtensionHostMsg_DidGetApplicationInfo. | 211 // ExtensionHostMsg_DidGetApplicationInfo. |
205 IPC_MESSAGE_ROUTED1(ExtensionMsg_GetApplicationInfo, | 212 IPC_MESSAGE_ROUTED1(ExtensionMsg_GetApplicationInfo, |
206 int32 /*page_id*/) | 213 int32 /*page_id*/) |
207 | 214 |
208 // Messages sent from the renderer to the browser. | 215 // Messages sent from the renderer to the browser. |
209 | 216 |
210 // A renderer sends this message when an extension process starts an API | 217 // A renderer sends this message when an extension process starts an API |
211 // request. The browser will always respond with a ExtensionMsg_Response. | 218 // request. The browser will always respond with a ExtensionMsg_Response. |
212 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request, | 219 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 bool /* whether the script ran successfully */) | 272 bool /* whether the script ran successfully */) |
266 | 273 |
267 | 274 |
268 IPC_MESSAGE_ROUTED2(ExtensionHostMsg_DidGetApplicationInfo, | 275 IPC_MESSAGE_ROUTED2(ExtensionHostMsg_DidGetApplicationInfo, |
269 int32 /* page_id */, | 276 int32 /* page_id */, |
270 WebApplicationInfo) | 277 WebApplicationInfo) |
271 | 278 |
272 // Sent by the renderer to implement chrome.app.installApplication(). | 279 // Sent by the renderer to implement chrome.app.installApplication(). |
273 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_InstallApplication, | 280 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_InstallApplication, |
274 WebApplicationInfo) | 281 WebApplicationInfo) |
OLD | NEW |