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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 | 684 |
685 // A renderer sends this message when an extension process starts an API | 685 // A renderer sends this message when an extension process starts an API |
686 // request. The browser will always respond with a ExtensionMsg_Response. | 686 // request. The browser will always respond with a ExtensionMsg_Response. |
687 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread, | 687 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread, |
688 int /* routing_id */, | 688 int /* routing_id */, |
689 ExtensionHostMsg_Request_Params) | 689 ExtensionHostMsg_Request_Params) |
690 | 690 |
691 // Notify the browser that the given extension added a listener to an event. | 691 // Notify the browser that the given extension added a listener to an event. |
692 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_AddListener, | 692 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_AddListener, |
693 std::string /* extension_id */, | 693 std::string /* extension_id */, |
694 GURL /* listener_url */, | 694 GURL /* listener_or_worker_scope_url */, |
695 std::string /* name */, | 695 std::string /* name */, |
696 int /* worker_thread_id */) | 696 int /* worker_thread_id */) |
697 | 697 |
698 // Notify the browser that the given extension removed a listener from an | 698 // Notify the browser that the given extension removed a listener from an |
699 // event. | 699 // event. |
700 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_RemoveListener, | 700 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_RemoveListener, |
701 std::string /* extension_id */, | 701 std::string /* extension_id */, |
702 GURL /* listener_url */, | 702 GURL /* listener_or_worker_scope_url */, |
703 std::string /* name */, | 703 std::string /* name */, |
704 int /* worker_thread_id */) | 704 int /* worker_thread_id */) |
705 | 705 |
706 // Notify the browser that the given extension added a listener to an event from | 706 // Notify the browser that the given extension added a listener to an event from |
707 // a lazy background page. | 707 // a lazy background page. |
708 IPC_MESSAGE_CONTROL3(ExtensionHostMsg_AddLazyListener, | 708 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddLazyListener, |
709 std::string /* extension_id */, | 709 std::string /* extension_id */, |
710 std::string /* name */, | 710 std::string /* name */) |
711 int /* worker_thread_id */) | |
712 | 711 |
713 // Notify the browser that the given extension is no longer interested in | 712 // Notify the browser that the given extension is no longer interested in |
714 // receiving the given event from a lazy background page. | 713 // receiving the given event from a lazy background page. |
715 IPC_MESSAGE_CONTROL3(ExtensionHostMsg_RemoveLazyListener, | 714 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RemoveLazyListener, |
| 715 std::string /* extension_id */, |
| 716 std::string /* event_name */) |
| 717 |
| 718 // Notify the browser that the given extension added a listener to an event from |
| 719 // an extension service worker. |
| 720 IPC_MESSAGE_CONTROL3(ExtensionHostMsg_AddLazyServiceWorkerListener, |
716 std::string /* extension_id */, | 721 std::string /* extension_id */, |
717 std::string /* name */, | 722 std::string /* name */, |
718 int /* worker_thread_id */) | 723 GURL /* service_worker_scope */) |
| 724 |
| 725 // Notify the browser that the given extension is no longer interested in |
| 726 // receiving the given event from an extension service worker. |
| 727 IPC_MESSAGE_CONTROL3(ExtensionHostMsg_RemoveLazyServiceWorkerListener, |
| 728 std::string /* extension_id */, |
| 729 std::string /* name */, |
| 730 GURL /* service_worker_scope */) |
719 | 731 |
720 // Notify the browser that the given extension added a listener to instances of | 732 // Notify the browser that the given extension added a listener to instances of |
721 // the named event that satisfy the filter. | 733 // the named event that satisfy the filter. |
722 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_AddFilteredListener, | 734 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_AddFilteredListener, |
723 std::string /* extension_id */, | 735 std::string /* extension_id */, |
724 std::string /* name */, | 736 std::string /* name */, |
725 base::DictionaryValue /* filter */, | 737 base::DictionaryValue /* filter */, |
726 bool /* lazy */) | 738 bool /* lazy */) |
727 | 739 |
728 // Notify the browser that the given extension is no longer interested in | 740 // Notify the browser that the given extension is no longer interested in |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
949 int64_t /* service_worker_version_id */, | 961 int64_t /* service_worker_version_id */, |
950 std::string /* request_uuid */) | 962 std::string /* request_uuid */) |
951 | 963 |
952 // Asks the browser to decrement the pending activity count for | 964 // Asks the browser to decrement the pending activity count for |
953 // the worker with version id |service_worker_version_id|. | 965 // the worker with version id |service_worker_version_id|. |
954 // |request_uuid| must match the GUID of a previous request, otherwise the | 966 // |request_uuid| must match the GUID of a previous request, otherwise the |
955 // browser process ignores the IPC. | 967 // browser process ignores the IPC. |
956 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_DecrementServiceWorkerActivity, | 968 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_DecrementServiceWorkerActivity, |
957 int64_t /* service_worker_version_id */, | 969 int64_t /* service_worker_version_id */, |
958 std::string /* request_uuid */) | 970 std::string /* request_uuid */) |
OLD | NEW |