OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 // Dispatch the Port.onConnect event for message channels. | 412 // Dispatch the Port.onConnect event for message channels. |
413 IPC_MESSAGE_ROUTED4(ExtensionMsg_DispatchOnConnect, | 413 IPC_MESSAGE_ROUTED4(ExtensionMsg_DispatchOnConnect, |
414 int /* target_port_id */, | 414 int /* target_port_id */, |
415 std::string /* channel_name */, | 415 std::string /* channel_name */, |
416 DictionaryValue /* source_tab */, | 416 DictionaryValue /* source_tab */, |
417 ExtensionMsg_ExternalConnectionInfo) | 417 ExtensionMsg_ExternalConnectionInfo) |
418 | 418 |
419 // Deliver a message sent with ExtensionHostMsg_PostMessage. | 419 // Deliver a message sent with ExtensionHostMsg_PostMessage. |
420 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage, | 420 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage, |
421 int /* target_port_id */, | 421 int /* target_port_id */, |
422 std::string /* message */) | 422 ListValue /* message arguments, a 0-or-1 length list */) |
423 | 423 |
424 // Dispatch the Port.onDisconnect event for message channels. | 424 // Dispatch the Port.onDisconnect event for message channels. |
425 IPC_MESSAGE_ROUTED2(ExtensionMsg_DispatchOnDisconnect, | 425 IPC_MESSAGE_ROUTED2(ExtensionMsg_DispatchOnDisconnect, |
426 int /* port_id */, | 426 int /* port_id */, |
427 std::string /* error_message */) | 427 std::string /* error_message */) |
428 | 428 |
429 // Informs the renderer what channel (dev, beta, stable, etc) is running. | 429 // Informs the renderer what channel (dev, beta, stable, etc) is running. |
430 IPC_MESSAGE_CONTROL1(ExtensionMsg_SetChannel, | 430 IPC_MESSAGE_CONTROL1(ExtensionMsg_SetChannel, |
431 int /* channel */) | 431 int /* channel */) |
432 | 432 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 int /* routing_id */, | 522 int /* routing_id */, |
523 int /* tab_id */, | 523 int /* tab_id */, |
524 std::string /* extension_id */, | 524 std::string /* extension_id */, |
525 std::string /* channel_name */, | 525 std::string /* channel_name */, |
526 int /* port_id */) | 526 int /* port_id */) |
527 | 527 |
528 // Send a message to an extension process. The handle is the value returned | 528 // Send a message to an extension process. The handle is the value returned |
529 // by ViewHostMsg_OpenChannelTo*. | 529 // by ViewHostMsg_OpenChannelTo*. |
530 IPC_MESSAGE_ROUTED2(ExtensionHostMsg_PostMessage, | 530 IPC_MESSAGE_ROUTED2(ExtensionHostMsg_PostMessage, |
531 int /* port_id */, | 531 int /* port_id */, |
532 std::string /* message */) | 532 ListValue /* message arguments, a 0-or-1 length list */) |
533 | 533 |
534 // Send a message to an extension process. The handle is the value returned | 534 // Send a message to an extension process. The handle is the value returned |
535 // by ViewHostMsg_OpenChannelTo*. | 535 // by ViewHostMsg_OpenChannelTo*. |
536 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_CloseChannel, | 536 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_CloseChannel, |
537 int /* port_id */, | 537 int /* port_id */, |
538 std::string /* error_message */) | 538 std::string /* error_message */) |
539 | 539 |
540 // Used to get the extension message bundle. | 540 // Used to get the extension message bundle. |
541 IPC_SYNC_MESSAGE_CONTROL1_1(ExtensionHostMsg_GetMessageBundle, | 541 IPC_SYNC_MESSAGE_CONTROL1_1(ExtensionHostMsg_GetMessageBundle, |
542 std::string /* extension id */, | 542 std::string /* extension id */, |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 // Notifies the browser process that a tab has started or stopped matching | 635 // Notifies the browser process that a tab has started or stopped matching |
636 // certain conditions. This message is sent in response to several events: | 636 // certain conditions. This message is sent in response to several events: |
637 // | 637 // |
638 // * ExtensionMsg_WatchPages was received, updating the set of conditions. | 638 // * ExtensionMsg_WatchPages was received, updating the set of conditions. |
639 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. | 639 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. |
640 // Currently this only fires for the main frame. | 640 // Currently this only fires for the main frame. |
641 // * Something changed on an existing frame causing the set of matching searches | 641 // * Something changed on an existing frame causing the set of matching searches |
642 // to change. | 642 // to change. |
643 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, | 643 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, |
644 std::vector<std::string> /* Matching CSS selectors */) | 644 std::vector<std::string> /* Matching CSS selectors */) |
OLD | NEW |