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/shared_memory.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/common/extensions/extension.h" | 10 #include "chrome/common/extensions/extension.h" |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 std::string /* extension_id */) | 191 std::string /* extension_id */) |
192 | 192 |
193 // Marks an application as 'active' in a process. | 193 // Marks an application as 'active' in a process. |
194 IPC_MESSAGE_CONTROL1(ExtensionMsg_ActivateApplication, | 194 IPC_MESSAGE_CONTROL1(ExtensionMsg_ActivateApplication, |
195 std::string /* extension_id */) | 195 std::string /* extension_id */) |
196 | 196 |
197 // Notifies the renderer that an extension was loaded in the browser. | 197 // Notifies the renderer that an extension was loaded in the browser. |
198 IPC_MESSAGE_CONTROL1(ExtensionMsg_Loaded, | 198 IPC_MESSAGE_CONTROL1(ExtensionMsg_Loaded, |
199 ExtensionMsg_Loaded_Params) | 199 ExtensionMsg_Loaded_Params) |
200 | 200 |
| 201 // Gives the renderer a hint that a sequence of ExtensionMsg_Loaded messages |
| 202 // are about to be sent, followed by ExtensionMsg_EndBatchLoad. |
| 203 IPC_MESSAGE_CONTROL0(ExtensionMsg_StartBatchLoad) |
| 204 |
| 205 // Balances ExtensionMsg_StartBatchLoad. |
| 206 IPC_MESSAGE_CONTROL0(ExtensionMsg_EndBatchLoad) |
| 207 |
201 // Notifies the renderer that an extension was unloaded in the browser. | 208 // Notifies the renderer that an extension was unloaded in the browser. |
202 IPC_MESSAGE_CONTROL1(ExtensionMsg_Unloaded, | 209 IPC_MESSAGE_CONTROL1(ExtensionMsg_Unloaded, |
203 std::string) | 210 std::string) |
204 | 211 |
205 // Updates the scripting whitelist for extensions in the render process. This is | 212 // Updates the scripting whitelist for extensions in the render process. This is |
206 // only used for testing. | 213 // only used for testing. |
207 IPC_MESSAGE_CONTROL1(ExtensionMsg_SetScriptingWhitelist, | 214 IPC_MESSAGE_CONTROL1(ExtensionMsg_SetScriptingWhitelist, |
208 Extension::ScriptingWhitelist /* extenison ids */) | 215 Extension::ScriptingWhitelist /* extenison ids */) |
209 | 216 |
210 // Notification that renderer should run some JavaScript code. | 217 // Notification that renderer should run some JavaScript code. |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 // Response to the renderer for the above message. | 358 // Response to the renderer for the above message. |
352 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse, | 359 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse, |
353 std::string /* channel_id */, | 360 std::string /* channel_id */, |
354 std::string /* error */, | 361 std::string /* error */, |
355 int32 /* callback_id */) | 362 int32 /* callback_id */) |
356 | 363 |
357 // Deliver a message sent with ExtensionHostMsg_PostMessage. | 364 // Deliver a message sent with ExtensionHostMsg_PostMessage. |
358 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage, | 365 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage, |
359 int /* target_port_id */, | 366 int /* target_port_id */, |
360 std::string /* message */) | 367 std::string /* message */) |
OLD | NEW |