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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 IPC_MESSAGE_CONTROL2(ExtensionMsg_ShouldUnload, | 279 IPC_MESSAGE_CONTROL2(ExtensionMsg_ShouldUnload, |
280 std::string /* extension_id */, | 280 std::string /* extension_id */, |
281 int /* sequence_id */) | 281 int /* sequence_id */) |
282 | 282 |
283 // If we complete a round of ShouldUnload->ShouldUnloadAck messages without the | 283 // If we complete a round of ShouldUnload->ShouldUnloadAck messages without the |
284 // lazy background page becoming active again, we are ready to unload. This | 284 // lazy background page becoming active again, we are ready to unload. This |
285 // message tells the page to dispatch the unload event. | 285 // message tells the page to dispatch the unload event. |
286 IPC_MESSAGE_CONTROL1(ExtensionMsg_Unload, | 286 IPC_MESSAGE_CONTROL1(ExtensionMsg_Unload, |
287 std::string /* extension_id */) | 287 std::string /* extension_id */) |
288 | 288 |
| 289 // The browser changed its mind about unloading this extension. |
| 290 IPC_MESSAGE_CONTROL1(ExtensionMsg_CancelUnload, |
| 291 std::string /* extension_id */) |
| 292 |
289 // Send to renderer once the installation mentioned on | 293 // Send to renderer once the installation mentioned on |
290 // ExtensionHostMsg_InlineWebstoreInstall is complete. | 294 // ExtensionHostMsg_InlineWebstoreInstall is complete. |
291 IPC_MESSAGE_ROUTED3(ExtensionMsg_InlineWebstoreInstallResponse, | 295 IPC_MESSAGE_ROUTED3(ExtensionMsg_InlineWebstoreInstallResponse, |
292 int32 /* install id */, | 296 int32 /* install id */, |
293 bool /* whether the install was successful */, | 297 bool /* whether the install was successful */, |
294 std::string /* error */) | 298 std::string /* error */) |
295 | 299 |
296 // Response to the renderer for ExtensionHostMsg_GetAppNotifyChannel. | 300 // Response to the renderer for ExtensionHostMsg_GetAppNotifyChannel. |
297 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse, | 301 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse, |
298 std::string /* channel_id */, | 302 std::string /* channel_id */, |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 // alive. | 494 // alive. |
491 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount) | 495 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount) |
492 | 496 |
493 // Fetches a globally unique ID (for the lifetime of the browser) from the | 497 // Fetches a globally unique ID (for the lifetime of the browser) from the |
494 // browser process. | 498 // browser process. |
495 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, | 499 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, |
496 int /* unique_id */) | 500 int /* unique_id */) |
497 | 501 |
498 // Resumes resource requests for a newly created app window. | 502 // Resumes resource requests for a newly created app window. |
499 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) | 503 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) |
OLD | NEW |