Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1777)

Side by Side Diff: extensions/common/extension_messages.h

Issue 2300453002: [Extensions] Begin making Extension port initialization asynchronous (Closed)
Patch Set: Rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_RemoveFilteredListener, 667 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_RemoveFilteredListener,
668 std::string /* extension_id */, 668 std::string /* extension_id */,
669 std::string /* name */, 669 std::string /* name */,
670 base::DictionaryValue /* filter */, 670 base::DictionaryValue /* filter */,
671 bool /* lazy */) 671 bool /* lazy */)
672 672
673 // Notify the browser that an event has finished being dispatched. 673 // Notify the browser that an event has finished being dispatched.
674 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_EventAck, int /* message_id */) 674 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_EventAck, int /* message_id */)
675 675
676 // Open a channel to all listening contexts owned by the extension with 676 // Open a channel to all listening contexts owned by the extension with
677 // the given ID. This always returns a valid port ID which can be used for 677 // the given ID. This responds asynchronously with ExtensionMsg_AssignPortId.
678 // sending messages. If an error occurred, the opener will be notified 678 // If an error occurred, the opener will be notified asynchronously.
679 // asynchronously. 679 IPC_MESSAGE_CONTROL5(ExtensionHostMsg_OpenChannelToExtension,
680 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension, 680 int /* frame_routing_id */,
681 int /* frame_routing_id */, 681 ExtensionMsg_ExternalConnectionInfo,
682 ExtensionMsg_ExternalConnectionInfo, 682 std::string /* channel_name */,
683 std::string /* channel_name */, 683 bool /* include_tls_channel_id */,
684 bool /* include_tls_channel_id */, 684 int /* request_id */)
685 int /* port_id */) 685
686 // The response to a request to open an extension message port, including the
687 // global port id and the request id.
688 IPC_MESSAGE_ROUTED2(ExtensionMsg_AssignPortId,
689 int /*port_id, */,
nasko 2016/09/09 21:11:34 nit: /* port_id
Devlin 2016/09/10 00:42:38 Done.
690 int /* request_id */)
686 691
687 IPC_SYNC_MESSAGE_CONTROL2_1(ExtensionHostMsg_OpenChannelToNativeApp, 692 IPC_SYNC_MESSAGE_CONTROL2_1(ExtensionHostMsg_OpenChannelToNativeApp,
688 int /* frame_routing_id */, 693 int /* frame_routing_id */,
689 std::string /* native_app_name */, 694 std::string /* native_app_name */,
690 int /* port_id */) 695 int /* port_id */)
691 696
692 // Get a port handle to the given tab. The handle can be used for sending 697 // Get a port handle to the given tab. The handle can be used for sending
693 // messages to the extension. 698 // messages to the extension.
694 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToTab, 699 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToTab,
695 int /* frame_routing_id */, 700 int /* frame_routing_id */,
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 875
871 // The browser sends this message in response to all service worker extension 876 // The browser sends this message in response to all service worker extension
872 // api calls. The response data (if any) is one of the base::Value subclasses, 877 // api calls. The response data (if any) is one of the base::Value subclasses,
873 // wrapped as the first element in a ListValue. 878 // wrapped as the first element in a ListValue.
874 IPC_MESSAGE_CONTROL5(ExtensionMsg_ResponseWorker, 879 IPC_MESSAGE_CONTROL5(ExtensionMsg_ResponseWorker,
875 int /* thread_id */, 880 int /* thread_id */,
876 int /* request_id */, 881 int /* request_id */,
877 bool /* success */, 882 bool /* success */,
878 base::ListValue /* response wrapper (see comment above) */, 883 base::ListValue /* response wrapper (see comment above) */,
879 std::string /* error */) 884 std::string /* error */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698