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