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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 // Sent from the renderer to the browser to notify that content scripts are | 562 // Sent from the renderer to the browser to notify that content scripts are |
563 // running in the renderer that the IPC originated from. | 563 // running in the renderer that the IPC originated from. |
564 // Note that the page_id is for the parent (or more accurately the topmost) | 564 // Note that the page_id is for the parent (or more accurately the topmost) |
565 // frame (e.g. if executing in an iframe this is the page ID of the parent, | 565 // frame (e.g. if executing in an iframe this is the page ID of the parent, |
566 // unless the parent is an iframe... etc). | 566 // unless the parent is an iframe... etc). |
567 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_ContentScriptsExecuting, | 567 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_ContentScriptsExecuting, |
568 ExecutingScriptsMap, | 568 ExecutingScriptsMap, |
569 int32 /* page_id of the _topmost_ frame */, | 569 int32 /* page_id of the _topmost_ frame */, |
570 GURL /* url of the _topmost_ frame */) | 570 GURL /* url of the _topmost_ frame */) |
571 | 571 |
| 572 IPC_MESSAGE_ROUTED2(ExtensionHostMsg_NotifyExtensionScriptExecution, |
| 573 std::string /* extension id */, |
| 574 int /* page id */) |
| 575 |
572 // Sent by the renderer when a web page is checking if its app is installed. | 576 // Sent by the renderer when a web page is checking if its app is installed. |
573 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_GetAppInstallState, | 577 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_GetAppInstallState, |
574 GURL /* requestor_url */, | 578 GURL /* requestor_url */, |
575 int32 /* return_route_id */, | 579 int32 /* return_route_id */, |
576 int32 /* callback_id */) | 580 int32 /* callback_id */) |
577 | 581 |
578 // Optional Ack message sent to the browser to notify that the response to a | 582 // Optional Ack message sent to the browser to notify that the response to a |
579 // function has been processed. | 583 // function has been processed. |
580 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_ResponseAck, | 584 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_ResponseAck, |
581 int /* request_id */) | 585 int /* request_id */) |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 // certain conditions. This message is sent in response to several events: | 632 // certain conditions. This message is sent in response to several events: |
629 // | 633 // |
630 // * ExtensionMsg_WatchPages was received, updating the set of conditions. | 634 // * ExtensionMsg_WatchPages was received, updating the set of conditions. |
631 // * A new page is loaded. This will be sent after | 635 // * A new page is loaded. This will be sent after |
632 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the | 636 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the |
633 // main frame. | 637 // main frame. |
634 // * Something changed on an existing frame causing the set of matching searches | 638 // * Something changed on an existing frame causing the set of matching searches |
635 // to change. | 639 // to change. |
636 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, | 640 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, |
637 std::vector<std::string> /* Matching CSS selectors */) | 641 std::vector<std::string> /* Matching CSS selectors */) |
OLD | NEW |