| 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 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 // Open a channel to all listening contexts owned by the extension with | 678 // Open a channel to all listening contexts owned by the extension with |
| 679 // the given ID. This responds asynchronously with ExtensionMsg_AssignPortId. | 679 // the given ID. This responds asynchronously with ExtensionMsg_AssignPortId. |
| 680 // If an error occurred, the opener will be notified asynchronously. | 680 // If an error occurred, the opener will be notified asynchronously. |
| 681 IPC_MESSAGE_CONTROL5(ExtensionHostMsg_OpenChannelToExtension, | 681 IPC_MESSAGE_CONTROL5(ExtensionHostMsg_OpenChannelToExtension, |
| 682 int /* frame_routing_id */, | 682 int /* frame_routing_id */, |
| 683 ExtensionMsg_ExternalConnectionInfo, | 683 ExtensionMsg_ExternalConnectionInfo, |
| 684 std::string /* channel_name */, | 684 std::string /* channel_name */, |
| 685 bool /* include_tls_channel_id */, | 685 bool /* include_tls_channel_id */, |
| 686 int /* request_id */) | 686 int /* request_id */) |
| 687 | 687 |
| 688 // Same as ExtensionHostMsg_OpenChannelToExtension, but assigns the port id |
| 689 // synchronously. |
| 690 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtensionSync, |
| 691 int /* frame_routing_id */, |
| 692 ExtensionMsg_ExternalConnectionInfo, |
| 693 std::string /* channel_name */, |
| 694 bool /* include_tls_channel_id */, |
| 695 int /* port_id */) |
| 696 |
| 688 // The response to a request to open an extension message port, including the | 697 // The response to a request to open an extension message port, including the |
| 689 // global port id and the request id. | 698 // global port id and the request id. |
| 690 IPC_MESSAGE_ROUTED2(ExtensionMsg_AssignPortId, | 699 IPC_MESSAGE_ROUTED2(ExtensionMsg_AssignPortId, |
| 691 int /*port_id */, | 700 int /*port_id */, |
| 692 int /* request_id */) | 701 int /* request_id */) |
| 693 | 702 |
| 694 IPC_MESSAGE_CONTROL3(ExtensionHostMsg_OpenChannelToNativeApp, | 703 IPC_MESSAGE_CONTROL3(ExtensionHostMsg_OpenChannelToNativeApp, |
| 695 int /* frame_routing_id */, | 704 int /* frame_routing_id */, |
| 696 std::string /* native_app_name */, | 705 std::string /* native_app_name */, |
| 697 int /* request_id */) | 706 int /* request_id */) |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 894 int64_t /* service_worker_version_id */, | 903 int64_t /* service_worker_version_id */, |
| 895 std::string /* request_uuid */) | 904 std::string /* request_uuid */) |
| 896 | 905 |
| 897 // Asks the browser to decrement the pending activity count for | 906 // Asks the browser to decrement the pending activity count for |
| 898 // the worker with version id |service_worker_version_id|. | 907 // the worker with version id |service_worker_version_id|. |
| 899 // |request_uuid| must match the GUID of a previous request, otherwise the | 908 // |request_uuid| must match the GUID of a previous request, otherwise the |
| 900 // browser process ignores the IPC. | 909 // browser process ignores the IPC. |
| 901 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_DecrementServiceWorkerActivity, | 910 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_DecrementServiceWorkerActivity, |
| 902 int64_t /* service_worker_version_id */, | 911 int64_t /* service_worker_version_id */, |
| 903 std::string /* request_uuid */) | 912 std::string /* request_uuid */) |
| OLD | NEW |