| 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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 extensions::PortId /* target_port_id */, | 632 extensions::PortId /* target_port_id */, |
| 633 extensions::Message) | 633 extensions::Message) |
| 634 | 634 |
| 635 // Dispatch the Port.onDisconnect event for message channels. | 635 // Dispatch the Port.onDisconnect event for message channels. |
| 636 IPC_MESSAGE_ROUTED2(ExtensionMsg_DispatchOnDisconnect, | 636 IPC_MESSAGE_ROUTED2(ExtensionMsg_DispatchOnDisconnect, |
| 637 extensions::PortId /* port_id */, | 637 extensions::PortId /* port_id */, |
| 638 std::string /* error_message */) | 638 std::string /* error_message */) |
| 639 | 639 |
| 640 // Informs the renderer what channel (dev, beta, stable, etc) and user session | 640 // Informs the renderer what channel (dev, beta, stable, etc) and user session |
| 641 // type is running. | 641 // type is running. |
| 642 IPC_MESSAGE_CONTROL2(ExtensionMsg_SetSessionInfo, | 642 IPC_MESSAGE_CONTROL3(ExtensionMsg_SetSessionInfo, |
| 643 version_info::Channel /* channel */, | 643 version_info::Channel /* channel */, |
| 644 extensions::FeatureSessionType /* session_type */) | 644 extensions::FeatureSessionType /* session_type */, |
| 645 bool /* is_lock_screen_context */) |
| 645 | 646 |
| 646 // Notify the renderer that its window has closed. | 647 // Notify the renderer that its window has closed. |
| 647 IPC_MESSAGE_ROUTED0(ExtensionMsg_AppWindowClosed) | 648 IPC_MESSAGE_ROUTED0(ExtensionMsg_AppWindowClosed) |
| 648 | 649 |
| 649 // Notify the renderer that an extension wants notifications when certain | 650 // Notify the renderer that an extension wants notifications when certain |
| 650 // searches match the active page. This message replaces the old set of | 651 // searches match the active page. This message replaces the old set of |
| 651 // searches, and triggers ExtensionHostMsg_OnWatchedPageChange messages from | 652 // searches, and triggers ExtensionHostMsg_OnWatchedPageChange messages from |
| 652 // each tab to keep the browser updated about changes. | 653 // each tab to keep the browser updated about changes. |
| 653 IPC_MESSAGE_CONTROL1(ExtensionMsg_WatchPages, | 654 IPC_MESSAGE_CONTROL1(ExtensionMsg_WatchPages, |
| 654 std::vector<std::string> /* CSS selectors */) | 655 std::vector<std::string> /* CSS selectors */) |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 int64_t /* service_worker_version_id */, | 936 int64_t /* service_worker_version_id */, |
| 936 std::string /* request_uuid */) | 937 std::string /* request_uuid */) |
| 937 | 938 |
| 938 // Asks the browser to decrement the pending activity count for | 939 // Asks the browser to decrement the pending activity count for |
| 939 // the worker with version id |service_worker_version_id|. | 940 // the worker with version id |service_worker_version_id|. |
| 940 // |request_uuid| must match the GUID of a previous request, otherwise the | 941 // |request_uuid| must match the GUID of a previous request, otherwise the |
| 941 // browser process ignores the IPC. | 942 // browser process ignores the IPC. |
| 942 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_DecrementServiceWorkerActivity, | 943 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_DecrementServiceWorkerActivity, |
| 943 int64_t /* service_worker_version_id */, | 944 int64_t /* service_worker_version_id */, |
| 944 std::string /* request_uuid */) | 945 std::string /* request_uuid */) |
| OLD | NEW |