| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 // Tell the renderer process all known extension function names. | 186 // Tell the renderer process all known extension function names. |
| 187 IPC_MESSAGE_CONTROL1(ExtensionMsg_SetFunctionNames, | 187 IPC_MESSAGE_CONTROL1(ExtensionMsg_SetFunctionNames, |
| 188 std::vector<std::string>) | 188 std::vector<std::string>) |
| 189 | 189 |
| 190 // Marks an extension as 'active' in an extension process. 'Active' extensions | 190 // Marks an extension as 'active' in an extension process. 'Active' extensions |
| 191 // have more privileges than other extension content that might end up running | 191 // have more privileges than other extension content that might end up running |
| 192 // in the process (e.g. because of iframes or content scripts). | 192 // in the process (e.g. because of iframes or content scripts). |
| 193 IPC_MESSAGE_CONTROL1(ExtensionMsg_ActivateExtension, | 193 IPC_MESSAGE_CONTROL1(ExtensionMsg_ActivateExtension, |
| 194 std::string /* extension_id */) | 194 std::string /* extension_id */) |
| 195 | 195 |
| 196 // Marks an application as 'active' in a process. | |
| 197 IPC_MESSAGE_CONTROL1(ExtensionMsg_ActivateApplication, | |
| 198 std::string /* extension_id */) | |
| 199 | |
| 200 // Notifies the renderer that extensions were loaded in the browser. | 196 // Notifies the renderer that extensions were loaded in the browser. |
| 201 IPC_MESSAGE_CONTROL1(ExtensionMsg_Loaded, | 197 IPC_MESSAGE_CONTROL1(ExtensionMsg_Loaded, |
| 202 std::vector<ExtensionMsg_Loaded_Params>) | 198 std::vector<ExtensionMsg_Loaded_Params>) |
| 203 | 199 |
| 204 // Notifies the renderer that an extension was unloaded in the browser. | 200 // Notifies the renderer that an extension was unloaded in the browser. |
| 205 IPC_MESSAGE_CONTROL1(ExtensionMsg_Unloaded, | 201 IPC_MESSAGE_CONTROL1(ExtensionMsg_Unloaded, |
| 206 std::string) | 202 std::string) |
| 207 | 203 |
| 208 // Updates the scripting whitelist for extensions in the render process. This is | 204 // Updates the scripting whitelist for extensions in the render process. This is |
| 209 // only used for testing. | 205 // only used for testing. |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 // Response to the renderer for the above message. | 375 // Response to the renderer for the above message. |
| 380 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse, | 376 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse, |
| 381 std::string /* channel_id */, | 377 std::string /* channel_id */, |
| 382 std::string /* error */, | 378 std::string /* error */, |
| 383 int32 /* callback_id */) | 379 int32 /* callback_id */) |
| 384 | 380 |
| 385 // Deliver a message sent with ExtensionHostMsg_PostMessage. | 381 // Deliver a message sent with ExtensionHostMsg_PostMessage. |
| 386 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage, | 382 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage, |
| 387 int /* target_port_id */, | 383 int /* target_port_id */, |
| 388 std::string /* message */) | 384 std::string /* message */) |
| OLD | NEW |