| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 681 // Open a channel to all listening contexts owned by the extension with | 681 // Open a channel to all listening contexts owned by the extension with |
| 682 // the given ID. This responds asynchronously with ExtensionMsg_AssignPortId. | 682 // the given ID. This responds asynchronously with ExtensionMsg_AssignPortId. |
| 683 // If an error occurred, the opener will be notified asynchronously. | 683 // If an error occurred, the opener will be notified asynchronously. |
| 684 IPC_MESSAGE_CONTROL5(ExtensionHostMsg_OpenChannelToExtension, | 684 IPC_MESSAGE_CONTROL5(ExtensionHostMsg_OpenChannelToExtension, |
| 685 int /* frame_routing_id */, | 685 int /* frame_routing_id */, |
| 686 ExtensionMsg_ExternalConnectionInfo, | 686 ExtensionMsg_ExternalConnectionInfo, |
| 687 std::string /* channel_name */, | 687 std::string /* channel_name */, |
| 688 bool /* include_tls_channel_id */, | 688 bool /* include_tls_channel_id */, |
| 689 int /* request_id */) | 689 int /* request_id */) |
| 690 | 690 |
| 691 // Same as ExtensionHostMsg_OpenChannelToExtension, but assigns the port id |
| 692 // synchronously. |
| 693 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtensionSync, |
| 694 int /* frame_routing_id */, |
| 695 ExtensionMsg_ExternalConnectionInfo, |
| 696 std::string /* channel_name */, |
| 697 bool /* include_tls_channel_id */, |
| 698 int /* port_id */) |
| 699 |
| 691 // The response to a request to open an extension message port, including the | 700 // The response to a request to open an extension message port, including the |
| 692 // global port id and the request id. | 701 // global port id and the request id. |
| 693 IPC_MESSAGE_ROUTED2(ExtensionMsg_AssignPortId, | 702 IPC_MESSAGE_ROUTED2(ExtensionMsg_AssignPortId, |
| 694 int /*port_id */, | 703 int /*port_id */, |
| 695 int /* request_id */) | 704 int /* request_id */) |
| 696 | 705 |
| 697 IPC_MESSAGE_CONTROL3(ExtensionHostMsg_OpenChannelToNativeApp, | 706 IPC_MESSAGE_CONTROL3(ExtensionHostMsg_OpenChannelToNativeApp, |
| 698 int /* frame_routing_id */, | 707 int /* frame_routing_id */, |
| 699 std::string /* native_app_name */, | 708 std::string /* native_app_name */, |
| 700 int /* request_id */) | 709 int /* request_id */) |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 | 889 |
| 881 // The browser sends this message in response to all service worker extension | 890 // The browser sends this message in response to all service worker extension |
| 882 // api calls. The response data (if any) is one of the base::Value subclasses, | 891 // api calls. The response data (if any) is one of the base::Value subclasses, |
| 883 // wrapped as the first element in a ListValue. | 892 // wrapped as the first element in a ListValue. |
| 884 IPC_MESSAGE_CONTROL5(ExtensionMsg_ResponseWorker, | 893 IPC_MESSAGE_CONTROL5(ExtensionMsg_ResponseWorker, |
| 885 int /* thread_id */, | 894 int /* thread_id */, |
| 886 int /* request_id */, | 895 int /* request_id */, |
| 887 bool /* success */, | 896 bool /* success */, |
| 888 base::ListValue /* response wrapper (see comment above) */, | 897 base::ListValue /* response wrapper (see comment above) */, |
| 889 std::string /* error */) | 898 std::string /* error */) |
| OLD | NEW |