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/draggable_region.h" | 10 #include "chrome/common/extensions/draggable_region.h" |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 // the given ID. This always returns a valid port ID which can be used for | 428 // the given ID. This always returns a valid port ID which can be used for |
429 // sending messages. If an error occurred, the opener will be notified | 429 // sending messages. If an error occurred, the opener will be notified |
430 // asynchronously. | 430 // asynchronously. |
431 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension, | 431 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension, |
432 int /* routing_id */, | 432 int /* routing_id */, |
433 std::string /* source_extension_id */, | 433 std::string /* source_extension_id */, |
434 std::string /* target_extension_id */, | 434 std::string /* target_extension_id */, |
435 std::string /* channel_name */, | 435 std::string /* channel_name */, |
436 int /* port_id */) | 436 int /* port_id */) |
437 | 437 |
| 438 IPC_SYNC_MESSAGE_CONTROL5_1(ExtensionHostMsg_OpenChannelToNativeApp, |
| 439 int /* routing_id */, |
| 440 std::string /* source_extension_id */, |
| 441 std::string /* native_app_name */, |
| 442 std::string /* channel_name */, |
| 443 std::string /* connection_message */, |
| 444 int /* port_id */) |
| 445 |
438 // Get a port handle to the given tab. The handle can be used for sending | 446 // Get a port handle to the given tab. The handle can be used for sending |
439 // messages to the extension. | 447 // messages to the extension. |
440 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToTab, | 448 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToTab, |
441 int /* routing_id */, | 449 int /* routing_id */, |
442 int /* tab_id */, | 450 int /* tab_id */, |
443 std::string /* extension_id */, | 451 std::string /* extension_id */, |
444 std::string /* channel_name */, | 452 std::string /* channel_name */, |
445 int /* port_id */) | 453 int /* port_id */) |
446 | 454 |
447 // Send a message to an extension process. The handle is the value returned | 455 // Send a message to an extension process. The handle is the value returned |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 // browser process. | 542 // browser process. |
535 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, | 543 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, |
536 int /* unique_id */) | 544 int /* unique_id */) |
537 | 545 |
538 // Resumes resource requests for a newly created app window. | 546 // Resumes resource requests for a newly created app window. |
539 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) | 547 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) |
540 | 548 |
541 // Sent by the renderer when the draggable regions are updated. | 549 // Sent by the renderer when the draggable regions are updated. |
542 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, | 550 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, |
543 std::vector<extensions::DraggableRegion> /* regions */) | 551 std::vector<extensions::DraggableRegion> /* regions */) |
OLD | NEW |