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

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

Issue 1966283002: Remove port lifetime management from renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify: Assume that opener port is open, only send reply if closed Created 4 years, 7 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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 542
543 // The browser changed its mind about suspending this extension. 543 // The browser changed its mind about suspending this extension.
544 IPC_MESSAGE_CONTROL1(ExtensionMsg_CancelSuspend, 544 IPC_MESSAGE_CONTROL1(ExtensionMsg_CancelSuspend,
545 std::string /* extension_id */) 545 std::string /* extension_id */)
546 546
547 // Response to the renderer for ExtensionHostMsg_GetAppInstallState. 547 // Response to the renderer for ExtensionHostMsg_GetAppInstallState.
548 IPC_MESSAGE_ROUTED2(ExtensionMsg_GetAppInstallStateResponse, 548 IPC_MESSAGE_ROUTED2(ExtensionMsg_GetAppInstallStateResponse,
549 std::string /* state */, 549 std::string /* state */,
550 int32_t /* callback_id */) 550 int32_t /* callback_id */)
551 551
552 // Check whether the Port for extension messaging exists in the frame.
553 IPC_MESSAGE_ROUTED1(ExtensionMsg_CheckHasMessagePort,
554 int /* port_id */)
555
552 // Dispatch the Port.onConnect event for message channels. 556 // Dispatch the Port.onConnect event for message channels.
553 IPC_MESSAGE_ROUTED5(ExtensionMsg_DispatchOnConnect, 557 IPC_MESSAGE_ROUTED5(ExtensionMsg_DispatchOnConnect,
554 int /* target_port_id */, 558 int /* target_port_id */,
555 std::string /* channel_name */, 559 std::string /* channel_name */,
556 ExtensionMsg_TabConnectionInfo /* source */, 560 ExtensionMsg_TabConnectionInfo /* source */,
557 ExtensionMsg_ExternalConnectionInfo, 561 ExtensionMsg_ExternalConnectionInfo,
558 std::string /* tls_channel_id */) 562 std::string /* tls_channel_id */)
559 563
560 // Deliver a message sent with ExtensionHostMsg_PostMessage. 564 // Deliver a message sent with ExtensionHostMsg_PostMessage.
561 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage, 565 IPC_MESSAGE_ROUTED3(ExtensionMsg_DeliverMessage,
562 int /* target_port_id */, 566 int /* target_port_id */,
567 int /* source_tab_id */,
563 extensions::Message) 568 extensions::Message)
564 569
565 // Dispatch the Port.onDisconnect event for message channels. 570 // Dispatch the Port.onDisconnect event for message channels.
566 IPC_MESSAGE_ROUTED2(ExtensionMsg_DispatchOnDisconnect, 571 IPC_MESSAGE_ROUTED2(ExtensionMsg_DispatchOnDisconnect,
567 int /* port_id */, 572 int /* port_id */,
568 std::string /* error_message */) 573 std::string /* error_message */)
569 574
570 // Informs the renderer what channel (dev, beta, stable, etc) is running. 575 // Informs the renderer what channel (dev, beta, stable, etc) is running.
571 IPC_MESSAGE_CONTROL1(ExtensionMsg_SetChannel, 576 IPC_MESSAGE_CONTROL1(ExtensionMsg_SetChannel,
572 int /* channel */) 577 int /* channel */)
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 int /* acc_obj_id */, 829 int /* acc_obj_id */,
825 base::string16 /* selector */) 830 base::string16 /* selector */)
826 831
827 // Result of a query selector request. 832 // Result of a query selector request.
828 // result_acc_obj_id is the accessibility tree ID of the result element; 0 833 // result_acc_obj_id is the accessibility tree ID of the result element; 0
829 // indicates no result. 834 // indicates no result.
830 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result, 835 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result,
831 int /* request_id */, 836 int /* request_id */,
832 ExtensionHostMsg_AutomationQuerySelector_Error /* error */, 837 ExtensionHostMsg_AutomationQuerySelector_Error /* error */,
833 int /* result_acc_obj_id */) 838 int /* result_acc_obj_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698