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