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

Side by Side Diff: chrome/common/render_messages_internal.h

Issue 155707: Changed the extension.connect() API not to broadcast to all tabs. Added a (Closed)
Patch Set: review comments Created 11 years, 5 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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // This header is meant to be included in multiple passes, hence no traditional 5 // This header is meant to be included in multiple passes, hence no traditional
6 // header guard. 6 // header guard.
7 // See ipc_message_macros.h for explanation of the macros and passes. 7 // See ipc_message_macros.h for explanation of the macros and passes.
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 // started. 545 // started.
546 IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted) 546 IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted)
547 547
548 // The browser sends this message in response to all extension api calls. 548 // The browser sends this message in response to all extension api calls.
549 IPC_MESSAGE_ROUTED4(ViewMsg_ExtensionResponse, 549 IPC_MESSAGE_ROUTED4(ViewMsg_ExtensionResponse,
550 int /* request_id */, 550 int /* request_id */,
551 bool /* success */, 551 bool /* success */,
552 std::string /* response */, 552 std::string /* response */,
553 std::string /* error */) 553 std::string /* error */)
554 554
555 // Call a javascript function in every registered context in this process. 555 // This message is optionally routed. If used as a control message, it
556 // will call a javascript function in every registered context in the
557 // target process. If routed, it will be restricted to the contexts that
558 // are part of the target RenderView.
556 // |args| is a list of primitive Value types that are passed to the function. 559 // |args| is a list of primitive Value types that are passed to the function.
557 IPC_MESSAGE_CONTROL2(ViewMsg_ExtensionMessageInvoke, 560 IPC_MESSAGE_ROUTED2(ViewMsg_ExtensionMessageInvoke,
558 std::string /* function_name */, 561 std::string /* function_name */,
559 ListValue /* args */) 562 ListValue /* args */)
560 563
561 // Tell the renderer process all known extension function names. 564 // Tell the renderer process all known extension function names.
562 IPC_MESSAGE_CONTROL1(ViewMsg_Extension_SetFunctionNames, 565 IPC_MESSAGE_CONTROL1(ViewMsg_Extension_SetFunctionNames,
563 std::vector<std::string>) 566 std::vector<std::string>)
564 567
565 // Tell the renderer process all known page action ids for a particular 568 // Tell the renderer process all known page action ids for a particular
566 // extension. 569 // extension.
567 IPC_MESSAGE_CONTROL2(ViewMsg_Extension_UpdatePageActions, 570 IPC_MESSAGE_CONTROL2(ViewMsg_Extension_UpdatePageActions,
568 std::string /* extension_id */, 571 std::string /* extension_id */,
569 std::vector<std::string> /* page_action_ids */) 572 std::vector<std::string> /* page_action_ids */)
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
1421 // Open a channel to all listening contexts owned by the extension with 1424 // Open a channel to all listening contexts owned by the extension with
1422 // the given ID. This always returns a valid port ID which can be used for 1425 // the given ID. This always returns a valid port ID which can be used for
1423 // sending messages. If an error occurred, the opener will be notified 1426 // sending messages. If an error occurred, the opener will be notified
1424 // asynchronously. 1427 // asynchronously.
1425 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_OpenChannelToExtension, 1428 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_OpenChannelToExtension,
1426 int /* routing_id */, 1429 int /* routing_id */,
1427 std::string /* extension_id */, 1430 std::string /* extension_id */,
1428 std::string /* channel_name */, 1431 std::string /* channel_name */,
1429 int /* port_id */) 1432 int /* port_id */)
1430 1433
1431 // Get a port handle to the given tab's process. The handle can be used for 1434 // Get a port handle to the given tab. The handle can be used for sending
1432 // sending messages to the extension. 1435 // messages to the extension.
1433 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_OpenChannelToTab, 1436 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_OpenChannelToTab,
1434 int /* routing_id */, 1437 int /* routing_id */,
1435 int /* tab_id */, 1438 int /* tab_id */,
1439 std::string /* extension_id */,
1440 std::string /* channel_name */,
1436 int /* port_id */) 1441 int /* port_id */)
1437 1442
1438 // Send a message to an extension process. The handle is the value returned 1443 // Send a message to an extension process. The handle is the value returned
1439 // by ViewHostMsg_OpenChannelTo*. 1444 // by ViewHostMsg_OpenChannelTo*.
1440 IPC_MESSAGE_ROUTED2(ViewHostMsg_ExtensionPostMessage, 1445 IPC_MESSAGE_ROUTED2(ViewHostMsg_ExtensionPostMessage,
1441 int /* port_id */, 1446 int /* port_id */,
1442 std::string /* message */) 1447 std::string /* message */)
1443 1448
1444 // Send a message to an extension process. The handle is the value returned 1449 // Send a message to an extension process. The handle is the value returned
1445 // by ViewHostMsg_OpenChannelTo*. 1450 // by ViewHostMsg_OpenChannelTo*.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1493 // web resource. |error_message| is a user-readable explanation of what 1498 // web resource. |error_message| is a user-readable explanation of what
1494 // went wrong. 1499 // went wrong.
1495 IPC_MESSAGE_CONTROL1(UtilityHostMsg_UnpackWebResource_Failed, 1500 IPC_MESSAGE_CONTROL1(UtilityHostMsg_UnpackWebResource_Failed,
1496 std::string /* error_message, if any */) 1501 std::string /* error_message, if any */)
1497 1502
1498 // Sent by the renderer process to acknowledge receipt of a 1503 // Sent by the renderer process to acknowledge receipt of a
1499 // ViewMsg_CSSInsertRequest message and css has been inserted into the frame. 1504 // ViewMsg_CSSInsertRequest message and css has been inserted into the frame.
1500 IPC_MESSAGE_ROUTED0(ViewHostMsg_OnCSSInserted) 1505 IPC_MESSAGE_ROUTED0(ViewHostMsg_OnCSSInserted)
1501 1506
1502 IPC_END_MESSAGES(ViewHost) 1507 IPC_END_MESSAGES(ViewHost)
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/resource_message_filter.cc ('k') | chrome/renderer/extensions/bindings_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698