| 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 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // The response to a request to open an extension message port, including the | 691 // The response to a request to open an extension message port, including the |
| 692 // global port id and the request id. | 692 // global port id and the request id. |
| 693 IPC_MESSAGE_ROUTED2(ExtensionMsg_AssignPortId, | 693 IPC_MESSAGE_ROUTED2(ExtensionMsg_AssignPortId, |
| 694 int /*port_id */, | 694 int /*port_id */, |
| 695 int /* request_id */) | 695 int /* request_id */) |
| 696 | 696 |
| 697 IPC_SYNC_MESSAGE_CONTROL2_1(ExtensionHostMsg_OpenChannelToNativeApp, | 697 IPC_MESSAGE_CONTROL3(ExtensionHostMsg_OpenChannelToNativeApp, |
| 698 int /* frame_routing_id */, | 698 int /* frame_routing_id */, |
| 699 std::string /* native_app_name */, | 699 std::string /* native_app_name */, |
| 700 int /* port_id */) | 700 int /* request_id */) |
| 701 | 701 |
| 702 // Get a port handle to the given tab. The handle can be used for sending | 702 // Get a port handle to the given tab. The handle can be used for sending |
| 703 // messages to the extension. | 703 // messages to the extension. |
| 704 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToTab, | 704 IPC_MESSAGE_CONTROL5(ExtensionHostMsg_OpenChannelToTab, |
| 705 int /* frame_routing_id */, | 705 int /* frame_routing_id */, |
| 706 ExtensionMsg_TabTargetConnectionInfo, | 706 ExtensionMsg_TabTargetConnectionInfo, |
| 707 std::string /* extension_id */, | 707 std::string /* extension_id */, |
| 708 std::string /* channel_name */, | 708 std::string /* channel_name */, |
| 709 int /* port_id */) | 709 int /* request_id */) |
| 710 | 710 |
| 711 // Sent in response to ExtensionMsg_DispatchOnConnect when the port is accepted. | 711 // Sent in response to ExtensionMsg_DispatchOnConnect when the port is accepted. |
| 712 // The handle is the value returned by ExtensionHostMsg_OpenChannelTo*. | 712 // The handle is the value returned by ExtensionHostMsg_OpenChannelTo*. |
| 713 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_OpenMessagePort, | 713 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_OpenMessagePort, |
| 714 int /* frame_routing_id */, | 714 int /* frame_routing_id */, |
| 715 int /* port_id */) | 715 int /* port_id */) |
| 716 | 716 |
| 717 // Sent in response to ExtensionMsg_DispatchOnConnect and whenever the port is | 717 // Sent in response to ExtensionMsg_DispatchOnConnect and whenever the port is |
| 718 // closed. The handle is the value returned by ExtensionHostMsg_OpenChannelTo*. | 718 // closed. The handle is the value returned by ExtensionHostMsg_OpenChannelTo*. |
| 719 IPC_MESSAGE_CONTROL3(ExtensionHostMsg_CloseMessagePort, | 719 IPC_MESSAGE_CONTROL3(ExtensionHostMsg_CloseMessagePort, |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 | 880 |
| 881 // The browser sends this message in response to all service worker extension | 881 // 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, | 882 // api calls. The response data (if any) is one of the base::Value subclasses, |
| 883 // wrapped as the first element in a ListValue. | 883 // wrapped as the first element in a ListValue. |
| 884 IPC_MESSAGE_CONTROL5(ExtensionMsg_ResponseWorker, | 884 IPC_MESSAGE_CONTROL5(ExtensionMsg_ResponseWorker, |
| 885 int /* thread_id */, | 885 int /* thread_id */, |
| 886 int /* request_id */, | 886 int /* request_id */, |
| 887 bool /* success */, | 887 bool /* success */, |
| 888 base::ListValue /* response wrapper (see comment above) */, | 888 base::ListValue /* response wrapper (see comment above) */, |
| 889 std::string /* error */) | 889 std::string /* error */) |
| OLD | NEW |